aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-14 00:06:33 +0100
committerJohannes Schickel2013-01-14 00:08:43 +0100
commitfeb2454eec77307b36de0e7841ec7f3ac2c82a11 (patch)
treed5563b6b11a9caff3f17abb11960903d35a5b368 /backends/platform/iphone
parent56b81877b9a18cfe5f448c051a683694552f15c9 (diff)
downloadscummvm-rg350-feb2454eec77307b36de0e7841ec7f3ac2c82a11.tar.gz
scummvm-rg350-feb2454eec77307b36de0e7841ec7f3ac2c82a11.tar.bz2
scummvm-rg350-feb2454eec77307b36de0e7841ec7f3ac2c82a11.zip
IPHONE: Initialize the palettes on startup.
This hopefully fixes the occasional odd color flashes on startup.
Diffstat (limited to 'backends/platform/iphone')
-rw-r--r--backends/platform/iphone/osys_main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp
index f9b2a81ce6..ed2c886213 100644
--- a/backends/platform/iphone/osys_main.cpp
+++ b/backends/platform/iphone/osys_main.cpp
@@ -65,6 +65,10 @@ OSystem_IPHONE::OSystem_IPHONE() :
_touchpadModeEnabled = !iPhone_isHighResDevice();
_fsFactory = new POSIXFilesystemFactory();
initVideoContext();
+
+ memset(_gamePalette, 0, sizeof(_gamePalette));
+ memset(_gamePaletteRGBA5551, 0, sizeof(_gamePaletteRGBA5551));
+ memset(_mouseCursorPalette, 0, sizeof(_mouseCursorPalette));
}
OSystem_IPHONE::~OSystem_IPHONE() {