diff test/testalpha.c @ 1152:51a8702d8ecd

Updates to PocketPC (WinCE) support, thanks to Dmitry Yakimov at activekitten.com.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 29 Sep 2005 09:43:00 +0000
parents be9c9c8f6d53
children 23b1ef7d003b
line wrap: on
line diff
--- a/test/testalpha.c	Wed Sep 28 11:36:20 2005 +0000
+++ b/test/testalpha.c	Thu Sep 29 09:43:00 2005 +0000
@@ -339,12 +339,20 @@
 	}
 
 	/* Set 640x480 video mode */
+#ifndef _WIN32_WCE
 	if ( (screen=SDL_SetVideoMode(640,480,video_bpp,videoflags)) == NULL ) {
 		fprintf(stderr, "Couldn't set 640x480x%d video mode: %s\n",
 						video_bpp, SDL_GetError());
 		quit(2);
 	}
-
+#else
+	/* Pocket PC */
+	if ( (screen=SDL_SetVideoMode(240,320,video_bpp,SDL_FULLSCREEN)) == NULL ) {
+		fprintf(stderr, "Couldn't set 240x320x%d video mode: %s\n",
+						video_bpp, SDL_GetError());
+		quit(2);
+	}
+#endif
 	/* Set the surface pixels and refresh! */
 	if ( SDL_LockSurface(screen) < 0 ) {
 		fprintf(stderr, "Couldn't lock the display surface: %s\n",