diff src/video/windib/SDL_dibvideo.c @ 3976:8582c6a5ca16 SDL-1.2

Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Jun 2007 00:50:20 +0000
parents b2f59aadec0d
children b0d021cf41b6
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Sun Jun 24 18:26:35 2007 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Mon Jun 25 00:50:20 2007 +0000
@@ -751,6 +751,11 @@
 
 		/* Set video surface flags */
 		if ( bpp <= 8 ) {
+			if ( (video->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
+				hdc = GetDC(SDL_Window);
+				SetSystemPaletteUse(hdc, SYSPAL_NOSTATIC);
+				ReleaseDC(SDL_Window, hdc);
+			}
 			/* BitBlt() maps colors for us */
 			video->flags |= SDL_HWPALETTE;
 		}