diff src/video/windib/SDL_dibvideo.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 31fa08b36380
children 96671ebc50a4
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Fri Nov 12 21:24:46 2004 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Fri Nov 12 21:25:42 2004 +0000
@@ -201,9 +201,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 DIB_AddMode(_THIS, int bpp, int w, int h)