From a8da69bca54c422c1d89cf14bfa4a9bfcd136f06 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 Oct 2003 00:28:23 +0000 Subject: fixed some broken scaler related checks svn-id: r10595 --- backends/sdl/sdl.cpp | 2 +- backends/sdl/sdl_gl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backends/sdl') diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 93f8fb2a26..d2b83fa102 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -387,7 +387,7 @@ uint32 OSystem_SDL::property(int param, Property *value) { #endif return 1; } else if (param == PROP_SET_GFX_MODE) { - if (value->gfx_mode >= 11) + if (value->gfx_mode > 11) // FIXME! HACK, hard coded threshold, not good return 0; _mode = value->gfx_mode; diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index 7161158d46..fec923edc0 100644 --- a/backends/sdl/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp @@ -636,7 +636,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) { } } else if (param == PROP_SET_GFX_MODE) { - if (value->gfx_mode > 10) { // OpenGL modes + if (value->gfx_mode == GFX_BILINEAR) { // OpenGL mode if (!_usingOpenGL) { _usingOpenGL = true; _mode = GFX_NORMAL; @@ -652,7 +652,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) { fb2gl.setBilinearMode(_glBilinearFilter); break; default: // SDL backend - if (value->gfx_mode >= 11) + if (value->gfx_mode > 11) // FIXME! HACK, hard coded threshold, not good return 0; _mode = value->gfx_mode; -- cgit v1.2.3