aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/testbed/graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 5b30b3c6ee..36ec726fc7 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -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++) {