From 47523d86fb19d9461677d991bedd0d2ed55fe092 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Mon, 25 Oct 2010 06:50:48 +0000 Subject: (svn r21036) -Fix: [OSX] Properly set the palette when using the 8bpp blitter during start-up --- src/video/cocoa/event.mm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/video') diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm index cda2fc56e..bf643955e 100644 --- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -626,6 +626,12 @@ void QZ_GameLoop() _cocoa_subdriver->Draw(); CSleep(1); + /* Set the proper OpenTTD palette which got spoilt by the splash + * image when using 8bpp blitter */ + GfxInitPalettes(); + QZ_CheckPaletteAnim(); + _cocoa_subdriver->Draw(true); + for (;;) { uint32 prev_cur_ticks = cur_ticks; // to check for wrapping InteractiveRandom(); // randomness -- cgit v1.2.3-70-g09d2