From 3b8aefc936ef04c7de1fcb00d2ef306c82548c49 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 8 Dec 2006 00:16:38 +0000 Subject: [PATCH] Logic error in BeOS video mode selection ("width" where it should be "height"). Fixes Bugzilla #370. --- src/video/bwindow/SDL_sysvideo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/bwindow/SDL_sysvideo.cc b/src/video/bwindow/SDL_sysvideo.cc index c42477828..a7a588168 100644 --- a/src/video/bwindow/SDL_sysvideo.cc +++ b/src/video/bwindow/SDL_sysvideo.cc @@ -374,7 +374,7 @@ extern "C" (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;