diff src/video/windx5/SDL_dx5video.c @ 3992:c75679dce60c SDL-1.2

Fixed bug #335 Use SetSystemPaletteUse() to get better access to the system palette. We can still do better palette matching in the case where we aren't using fullscreen mode or a hardware palette, but that can wait for another day. :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 03 Jul 2007 09:05:51 +0000
parents 339d733e3699
children 7cd5a59480a4
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5video.c	Mon Jul 02 02:45:52 2007 +0000
+++ b/src/video/windx5/SDL_dx5video.c	Tue Jul 03 09:05:51 2007 +0000
@@ -427,6 +427,7 @@
 				LPDIRECTDRAWSURFACE3 requested, Uint32 flag);
 
 /* Windows message handling functions */
+static void DX5_Activate(_THIS, BOOL active, BOOL minimized);
 static void DX5_RealizePalette(_THIS);
 static void DX5_PaletteChanged(_THIS, HWND window);
 static void DX5_WinPAINT(_THIS, HDC hdc);
@@ -620,6 +621,7 @@
 	device->PumpEvents = DX5_PumpEvents;
 
 	/* Set up the windows message handling functions */
+	WIN_Activate = DX5_Activate;
 	WIN_RealizePalette = DX5_RealizePalette;
 	WIN_PaletteChanged = DX5_PaletteChanged;
 	WIN_WinPAINT = DX5_WinPAINT;
@@ -2421,6 +2423,9 @@
 }
 
 /* Exported for the windows message loop only */
+void DX5_Activate(_THIS, BOOL active, BOOL minimized)
+{
+}
 void DX5_RealizePalette(_THIS)
 {
 	if ( SDL_palette ) {