From 9253387001aafa9bd996a2e2906732373b20a43a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 28 Nov 2006 14:32:24 +0000 Subject: (svn r7273) -Fix (r7250): Initialise game palette before driver initialisation. This fixes a 'black screen' problem with fullscreen with the win32 video driver. --- openttd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openttd.c') 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); -- cgit v1.2.3-70-g09d2