mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user