[Scummvm-cvs-logs] scummvm master -> 1055c8a8d03416007f7f8dfc89f197c791c7ce98
Strangerke
arnaud.boutonne at gmail.com
Fri Feb 18 22:56:51 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1055c8a8d0 SCI: Fix compilation using MSVC 9
Commit: 1055c8a8d03416007f7f8dfc89f197c791c7ce98
https://github.com/scummvm/scummvm/commit/1055c8a8d03416007f7f8dfc89f197c791c7ce98
Author: strangerke (arnaud.boutonne at gmail.com)
Date: 2011-02-18T13:56:34-08:00
Commit Message:
SCI: Fix compilation using MSVC 9
Changed paths:
engines/sci/graphics/palette.cpp
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 7a7f79b..b802f72 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() {
More information about the Scummvm-git-logs
mailing list