# HG changeset patch # User Ryan C. Gordon # Date 1165536998 0 # Node ID c611cb0638b26192195705ca1b0ce376c72ddbd7 # Parent 1ed2155b7ee4a3d58081e828657166a3548306d6 Logic error in BeOS video mode selection ("width" where it should be "height"). Fixes Bugzilla #370. diff -r 1ed2155b7ee4 -r c611cb0638b2 src/video/bwindow/SDL_sysvideo.cc --- 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;