diff src/video/bwindow/SDL_sysvideo.cc @ 2080:c611cb0638b2

Logic error in BeOS video mode selection ("width" where it should be "height"). Fixes Bugzilla #370.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 08 Dec 2006 00:16:38 +0000
parents c121d94672cb
children 34a4d02b8db1
line wrap: on
line diff
--- a/src/video/bwindow/SDL_sysvideo.cc	Fri Dec 01 20:25:03 2006 +0000
+++ b/src/video/bwindow/SDL_sysvideo.cc	Fri Dec 08 00:16:38 2006 +0000
@@ -374,7 +374,7 @@
              (modes[i]->h > height); ++i) {
             /* still looking */
         }
-        if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < width)) {
+        if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < height)) {
             --i;                /* We went too far */
         }
         width = modes[i]->w;