summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-28 14:32:24 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-28 14:32:24 +0000
commit051454304d859ac21aae4766f0fa2936c23c26e0 (patch)
treef3a60733534b163b7b89259753a0f91d2d56ad48
parentd8083d88ba040f22ed6e0407c5911ca3f210ba79 (diff)
downloadopenttd-051454304d859ac21aae4766f0fa2936c23c26e0.tar.xz
(svn r7273) -Fix (r7250): Initialise game palette before driver initialisation. This fixes a 'black screen' problem with fullscreen with the win32 video driver.
-rw-r--r--openttd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index b199b8b48..bdc35bed8 100644
--- a/openttd.c
+++ b/openttd.c
@@ -436,6 +436,9 @@ int ttd_main(int argc, char *argv[])
// This must be done early, since functions use the InvalidateWindow* calls
InitWindowSystem();
+ /* Initialize game palette */
+ GfxInitPalettes();
+
DEBUG(driver, 1) ("Loading drivers...");
LoadDriver(SOUND_DRIVER, _ini_sounddriver);
LoadDriver(MUSIC_DRIVER, _ini_musicdriver);