Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1151:be9c9c8f6d53 | 1152:51a8702d8ecd |
---|---|
337 quit(1); | 337 quit(1); |
338 } | 338 } |
339 } | 339 } |
340 | 340 |
341 /* Set 640x480 video mode */ | 341 /* Set 640x480 video mode */ |
342 #ifndef _WIN32_WCE | |
342 if ( (screen=SDL_SetVideoMode(640,480,video_bpp,videoflags)) == NULL ) { | 343 if ( (screen=SDL_SetVideoMode(640,480,video_bpp,videoflags)) == NULL ) { |
343 fprintf(stderr, "Couldn't set 640x480x%d video mode: %s\n", | 344 fprintf(stderr, "Couldn't set 640x480x%d video mode: %s\n", |
344 video_bpp, SDL_GetError()); | 345 video_bpp, SDL_GetError()); |
345 quit(2); | 346 quit(2); |
346 } | 347 } |
347 | 348 #else |
349 /* Pocket PC */ | |
350 if ( (screen=SDL_SetVideoMode(240,320,video_bpp,SDL_FULLSCREEN)) == NULL ) { | |
351 fprintf(stderr, "Couldn't set 240x320x%d video mode: %s\n", | |
352 video_bpp, SDL_GetError()); | |
353 quit(2); | |
354 } | |
355 #endif | |
348 /* Set the surface pixels and refresh! */ | 356 /* Set the surface pixels and refresh! */ |
349 if ( SDL_LockSurface(screen) < 0 ) { | 357 if ( SDL_LockSurface(screen) < 0 ) { |
350 fprintf(stderr, "Couldn't lock the display surface: %s\n", | 358 fprintf(stderr, "Couldn't lock the display surface: %s\n", |
351 SDL_GetError()); | 359 SDL_GetError()); |
352 quit(2); | 360 quit(2); |