aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/testbed/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index b8a3e1ff63..23747674cc 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -179,9 +179,9 @@ void GFXtests::HSVtoRGB(int &rComp, int &gComp, int &bComp, int hue, int sat, in
break;
}
- rComp = r * 255;
- gComp = g * 255;
- bComp = b * 255;
+ rComp = (int)(r * 255);
+ gComp = (int)(g * 255);
+ bComp = (int)(b * 255);
}
Common::Rect GFXtests::drawCursor(bool cursorPaletteDisabled, const char *gfxModeName, int cursorTargetScale) {