diff options
-rw-r--r-- | backends/sdl/sdl.cpp | 2 | ||||
-rw-r--r-- | backends/sdl/sdl_gl.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
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; |