From 12ebe8065e6020415cb3a6df216a4504014371db Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 14 Jul 2010 22:43:59 +0000 Subject: Fix warnings svn-id: r50899 --- engines/testbed/graphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/testbed') 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) { -- cgit v1.2.3