diff options
author | strangerke | 2011-02-18 22:56:34 +0100 |
---|---|---|
committer | strangerke | 2011-02-18 22:56:34 +0100 |
commit | 1055c8a8d03416007f7f8dfc89f197c791c7ce98 (patch) | |
tree | 1581207a0b2f430b27e8177c3c6020c00e3a49fb | |
parent | 2ad969bcac7c46fe0ee8dce152e243c803f5ebae (diff) | |
download | scummvm-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.cpp | 2 |
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() { |