diff src/video/windib/SDL_dibvideo.c @ 112:9ef74357a5fb

Incorporated slightly modified version of Rainer's WinCE patch
author Sam Lantinga <slouken@lokigames.com>
date Wed, 18 Jul 2001 20:04:23 +0000
parents 3dcf26fa9d15
children 29a638dc26db
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Sat Jul 14 20:37:24 2001 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Wed Jul 18 20:04:23 2001 +0000
@@ -375,9 +375,12 @@
 	hdc = GetDC(SDL_Window);
 	depth = GetDeviceCaps(hdc, PLANES) * GetDeviceCaps(hdc, BITSPIXEL);
 	ReleaseDC(SDL_Window, hdc);
+#ifndef _WIN32_WCE
+	// AFAIK 16 bit CE devices have indeed RGB 565
 	if ( depth == 16 ) {
 		depth = 15;	/* GDI defined as RGB 555 */
 	}
+#endif
 	return(depth);
 #else
     int dib_size;