@@ -203,27 +203,27 @@ static void DrawSurfaceToScreen()
if ((n=_num_dirty_rects) != 0) {
_num_dirty_rects = 0;
if (n > MAX_DIRTY_RECTS)
SDL_CALL SDL_UpdateRect(_sdl_screen, 0, 0, 0, 0);
else {
SDL_CALL SDL_UpdateRects(_sdl_screen, n, _dirty_rects);
}
static int CDECL compare_res(const void *pa, const void *pb)
{
int x = ((uint16*)pa)[0] - ((uint16*)pb)[0];
int x = ((const uint16*)pa)[0] - ((const uint16*)pb)[0];
if (x) return x;
return ((uint16*)pa)[1] - ((uint16*)pb)[1];
return ((const uint16*)pa)[1] - ((const uint16*)pb)[1];
static const uint16 default_resolutions[][2] = {
{640,480},
{800,600},
{1024,768},
{1152,864},
{1280,960},
{1280,1024},
{1400,1050},
{1600,1200},
};