Skip to content

Commit 2bd65f9

Browse files
authored
Update SwelvyBG.cpp
1 parent 84522d6 commit 2bd65f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SwelvyBG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ bool SwelvyBG::init(float widthmult, float hightmult, float minspeed, float maxs
3737
{ ccc3(213, 105, 133), "geode.loader/swelve-layer2.png" },
3838
{ ccc3(173, 84, 146), "geode.loader/swelve-layer1.png" },
3939
{ ccc3(113, 74, 154), "geode.loader/swelve-layer0.png" },
40-
}) {
40+
}) { if (Mod::get()->getSettingValue<bool>("enable-color-offset")) {
4141
// Apply the color offset
4242
ccColor3B adjustedColor = {
4343
static_cast<GLubyte>(std::min(255, layer.first.r + colorOffset.r)),
4444
static_cast<GLubyte>(std::min(255, layer.first.g + colorOffset.g)),
4545
static_cast<GLubyte>(std::min(255, layer.first.b + colorOffset.b))
46+
}
4647
};
4748

4849
float speed = dis(gen);

0 commit comments

Comments
 (0)