Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/riscos/SDL_riscosFullScreenVideo.c Fri Nov 12 21:24:46 2004 +0000 +++ b/src/video/riscos/SDL_riscosFullScreenVideo.c Fri Nov 12 21:25:42 2004 +0000 @@ -381,9 +381,10 @@ { SDL_Rect *a = *(SDL_Rect **)va; SDL_Rect *b = *(SDL_Rect **)vb; - if(a->w > b->w) - return -1; - return b->h - a->h; + if(a->w == b->w) + return b->h - a->h; + else + return b->w - a->w; } static int FULLSCREEN_AddMode(_THIS, int bpp, int w, int h)