summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-10-25 06:50:48 +0000
committerplanetmaker <planetmaker@openttd.org>2010-10-25 06:50:48 +0000
commit47523d86fb19d9461677d991bedd0d2ed55fe092 (patch)
tree8ec8058c1ccd3e42199acb84f24c5876296c0af2 /src
parent1f5554c5c7ed7e705a3b605cde4b1980cb2382bf (diff)
downloadopenttd-47523d86fb19d9461677d991bedd0d2ed55fe092.tar.xz
(svn r21036) -Fix: [OSX] Properly set the palette when using the 8bpp blitter during start-up
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa/event.mm6
1 files changed, 6 insertions, 0 deletions
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