aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {