aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstrangerke2011-02-18 22:56:34 +0100
committerstrangerke2011-02-18 22:56:34 +0100
commit1055c8a8d03416007f7f8dfc89f197c791c7ce98 (patch)
tree1581207a0b2f430b27e8177c3c6020c00e3a49fb
parent2ad969bcac7c46fe0ee8dce152e243c803f5ebae (diff)
downloadscummvm-rg350-1055c8a8d03416007f7f8dfc89f197c791c7ce98.tar.gz
scummvm-rg350-1055c8a8d03416007f7f8dfc89f197c791c7ce98.tar.bz2
scummvm-rg350-1055c8a8d03416007f7f8dfc89f197c791c7ce98.zip
SCI: Fix compilation using MSVC 9
-rw-r--r--engines/sci/graphics/palette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 7a7f79b7af..b802f7294a 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -426,7 +426,7 @@ void GfxPalette::setOnScreen() {
}
static byte convertMacGammaToSCIGamma(int comp) {
- return (byte)sqrt(comp * 255);
+ return (byte)sqrt(comp * 255.0f);
}
void GfxPalette::copySysPaletteToScreen() {