comparison src/video/windib/SDL_dibvideo.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents e49147870aac
children 782fd950bd46
comparison
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
346 DIB_AddMode(this, settings.dmBitsPerPel, 346 DIB_AddMode(this, settings.dmBitsPerPel,
347 settings.dmPelsHeight, settings.dmPelsWidth); 347 settings.dmPelsHeight, settings.dmPelsWidth);
348 #endif 348 #endif
349 } 349 }
350 /* Sort the mode lists */ 350 /* Sort the mode lists */
351 if( i > 1 )
352 for ( i=0; i<NUM_MODELISTS; ++i ) { 351 for ( i=0; i<NUM_MODELISTS; ++i ) {
353 if ( SDL_nummodes[i] > 0 ) { 352 if ( SDL_nummodes[i] > 0 ) {
354 SDL_qsort(SDL_modelist[i], SDL_nummodes[i], sizeof *SDL_modelist[i], cmpmodes); 353 SDL_qsort(SDL_modelist[i], SDL_nummodes[i], sizeof *SDL_modelist[i], cmpmodes);
355 } 354 }
356 } 355 }
359 // We use only vformat->BitsPerPixel that allow SDL to 358 // We use only vformat->BitsPerPixel that allow SDL to
360 // emulate other bpp (8, 32) and use triple buffer, 359 // emulate other bpp (8, 32) and use triple buffer,
361 // because SDL surface conversion is much faster than the WinCE one. 360 // because SDL surface conversion is much faster than the WinCE one.
362 // Although it should be tested on devices with graphics accelerator. 361 // Although it should be tested on devices with graphics accelerator.
363 362
364 DIB_AddMode(this, vformat->BitsPerPixel, 363 DIB_AddMode(this, vformat->BitsPerPixel,
365 GetDeviceCaps(GetDC(NULL), HORZRES), 364 GetDeviceCaps(GetDC(NULL), HORZRES),
366 GetDeviceCaps(GetDC(NULL), VERTRES)); 365 GetDeviceCaps(GetDC(NULL), VERTRES));
367 366
368 #endif /* !NO_CHANGEDISPLAYSETTINGS */ 367 #endif /* !NO_CHANGEDISPLAYSETTINGS */
369 368