changeset 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 1ed2155b7ee4
children 34a4d02b8db1
files src/video/bwindow/SDL_sysvideo.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;