1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix regression with chunky pixels being the wrong color

Since colors going into FillRect() need to be in BGR format, we need to
use getBGR instead. (Well, actually, it gets passed in RGB, but then at
some point the order gets switched around, and, really, this game's
masks are all over the place, I'm going to fix that in 2.4.)
This commit is contained in:
Misa 2021-08-05 19:44:24 -07:00 committed by Ethan Lee
parent 45dd7c39b7
commit 8f70cb8667

View file

@ -2988,9 +2988,9 @@ Uint32 Graphics::bigchunkygetcol(int t)
switch (t)
{
case 1:
return getRGB((fRandom() * 64), 10, 10);
return getBGR((fRandom() * 64), 10, 10);
case 2:
return getRGB(int(160- help.glow/2 - (fRandom()*20)), 200- help.glow/2, 220 - help.glow);
return getBGR(int(160- help.glow/2 - (fRandom()*20)), 200- help.glow/2, 220 - help.glow);
}
return 0x00000000;
}