mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
TESTBED: Fix GFXtests::HSVtoRGB() and caller
- update passed values and not local variables when s == 0 - initialize r, g, b values in palette rotation test instead of passing unitialized variables
This commit is contained in:
parent
3e1c4f8e16
commit
55f46a1376
@ -137,7 +137,7 @@ void GFXtests::HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, in
|
||||
float f, p, q, t;
|
||||
|
||||
if (s == 0) {
|
||||
r = g = b = v * 255;
|
||||
rComp = gComp = bComp = (int)(v * 255);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -969,6 +969,7 @@ TestExitStatus GFXtests::paletteRotation() {
|
||||
byte palette[256 * 3] = {0};
|
||||
|
||||
int r, g, b;
|
||||
r = g = b = 0;
|
||||
int colIndx;
|
||||
|
||||
for (int i = 0; i < 256; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user