aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorMax Horn2010-07-14 22:43:59 +0000
committerMax Horn2010-07-14 22:43:59 +0000
commit12ebe8065e6020415cb3a6df216a4504014371db (patch)
tree191e8bd466f91d8fb8102be021c9950df4852173 /engines/testbed
parent555acf4ba17898c0192c262f9dae45ab43a47185 (diff)
downloadscummvm-rg350-12ebe8065e6020415cb3a6df216a4504014371db.tar.gz
scummvm-rg350-12ebe8065e6020415cb3a6df216a4504014371db.tar.bz2
scummvm-rg350-12ebe8065e6020415cb3a6df216a4504014371db.zip
Fix warnings
svn-id: r50899
Diffstat (limited to 'engines/testbed')
-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) {