diff src/video/windib/SDL_dibvideo.c @ 1251:86d0d01290ea

Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode, updated project files, VS2005 support, VGA mode, more device support, etc, etc, etc. Fixes Bugzilla #47 and #28. --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 19 Jan 2006 08:43:00 +0000
parents 51a8702d8ecd
children f61f045343d3
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Thu Jan 19 08:36:41 2006 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Thu Jan 19 08:43:00 2006 +0000
@@ -768,14 +768,15 @@
 	ReleaseDC(SDL_Window, hdc);
 }
 
+
 int DIB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors)
 {
 	RGBQUAD *pal;
 	int i;
-#ifndef _WIN32_WCE
+#if (_WIN32_WCE < 400 )
+	HDC hdc;
+#else
 	HDC hdc, mdc;
-#else
-	HDC hdc;
 #endif
 
 	/* Update the display palette */
@@ -805,7 +806,7 @@
 	}
 
 	/* Set the DIB palette and update the display */
-#ifndef _WIN32_WCE
+#if ( _WIN32_WCE >= 400 )
 	mdc = CreateCompatibleDC(hdc);
 	SelectObject(mdc, screen_bmp);
 	SetDIBColorTable(mdc, firstcolor, ncolors, pal);
@@ -817,6 +818,7 @@
 	return(1);
 }
 
+
 static void DIB_CheckGamma(_THIS)
 {
 #ifndef NO_GAMMA_SUPPORT