summaryrefslogtreecommitdiff
path: root/openttd.c
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
commit9253387001aafa9bd996a2e2906732373b20a43a (patch)
treef3a60733534b163b7b89259753a0f91d2d56ad48 /openttd.c
parent38afc3796052554da0922a377a4010919062e0a9 (diff)
downloadopenttd-9253387001aafa9bd996a2e2906732373b20a43a.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.
Diffstat (limited to 'openttd.c')
-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);