comparison src/video/riscos/SDL_riscosFullScreenVideo.c @ 966:f72cc0c7305f

Video modes are sorted width first, then height
author Sam Lantinga <slouken@libsdl.org>
date Fri, 12 Nov 2004 21:25:42 +0000
parents b8d311d90021
children 974ba6ae0fa3
comparison
equal deleted inserted replaced
965:b68e551205e9 966:f72cc0c7305f
379 379
380 static int cmpmodes(const void *va, const void *vb) 380 static int cmpmodes(const void *va, const void *vb)
381 { 381 {
382 SDL_Rect *a = *(SDL_Rect **)va; 382 SDL_Rect *a = *(SDL_Rect **)va;
383 SDL_Rect *b = *(SDL_Rect **)vb; 383 SDL_Rect *b = *(SDL_Rect **)vb;
384 if(a->w > b->w) 384 if(a->w == b->w)
385 return -1; 385 return b->h - a->h;
386 return b->h - a->h; 386 else
387 return b->w - a->w;
387 } 388 }
388 389
389 static int FULLSCREEN_AddMode(_THIS, int bpp, int w, int h) 390 static int FULLSCREEN_AddMode(_THIS, int bpp, int w, int h)
390 { 391 {
391 SDL_Rect *mode; 392 SDL_Rect *mode;