Logic error in BeOS video mode selection ("width" where it should be "height").
authorRyan C. Gordon <icculus@icculus.org>
Fri, 08 Dec 2006 00:16:38 +0000
changeset 2080c611cb0638b2
parent 2079 1ed2155b7ee4
child 2081 34a4d02b8db1
Logic error in BeOS video mode selection ("width" where it should be "height").

Fixes Bugzilla #370.
src/video/bwindow/SDL_sysvideo.cc
     1.1 --- a/src/video/bwindow/SDL_sysvideo.cc	Fri Dec 01 20:25:03 2006 +0000
     1.2 +++ b/src/video/bwindow/SDL_sysvideo.cc	Fri Dec 08 00:16:38 2006 +0000
     1.3 @@ -374,7 +374,7 @@
     1.4               (modes[i]->h > height); ++i) {
     1.5              /* still looking */
     1.6          }
     1.7 -        if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < width)) {
     1.8 +        if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < height)) {
     1.9              --i;                /* We went too far */
    1.10          }
    1.11          width = modes[i]->w;