From feb2454eec77307b36de0e7841ec7f3ac2c82a11 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 14 Jan 2013 00:06:33 +0100 Subject: IPHONE: Initialize the palettes on startup. This hopefully fixes the occasional odd color flashes on startup. --- backends/platform/iphone/osys_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backends/platform') 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() { -- cgit v1.2.3