Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2079:1ed2155b7ee4 | 2080:c611cb0638b2 |
---|---|
372 modes = SDL_modelist[((bpp + 7) / 8) - 1]; | 372 modes = SDL_modelist[((bpp + 7) / 8) - 1]; |
373 for (i = 0; modes[i] && (modes[i]->w > width) && | 373 for (i = 0; modes[i] && (modes[i]->w > width) && |
374 (modes[i]->h > height); ++i) { | 374 (modes[i]->h > height); ++i) { |
375 /* still looking */ | 375 /* still looking */ |
376 } | 376 } |
377 if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < width)) { | 377 if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < height)) { |
378 --i; /* We went too far */ | 378 --i; /* We went too far */ |
379 } | 379 } |
380 width = modes[i]->w; | 380 width = modes[i]->w; |
381 height = modes[i]->h; | 381 height = modes[i]->h; |
382 bscreen.GetModeList(&dmodes, &nmodes); | 382 bscreen.GetModeList(&dmodes, &nmodes); |