changeset 5166:fb9d6ac24a75 draft

(svn r7273) -Fix (r7250): Initialise game palette before driver initialisation. This fixes a 'black screen' problem with fullscreen with the win32 video driver.
author peter1138 <peter1138@openttd.org>
date Tue, 28 Nov 2006 14:32:24 +0000
parents 3fed3f641c48
children 9cfb93a953ff
files openttd.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/openttd.c
+++ b/openttd.c
@@ -436,6 +436,9 @@
 	// 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);