diff options
author | Max Horn | 2003-10-05 00:28:23 +0000 |
---|---|---|
committer | Max Horn | 2003-10-05 00:28:23 +0000 |
commit | a8da69bca54c422c1d89cf14bfa4a9bfcd136f06 (patch) | |
tree | 2fb92cd91d76ee99104ddfb45d63ecb070206d88 | |
parent | 4a84b356f8570fd47ee258c694b7acd722eabe5f (diff) | |
download | scummvm-rg350-a8da69bca54c422c1d89cf14bfa4a9bfcd136f06.tar.gz scummvm-rg350-a8da69bca54c422c1d89cf14bfa4a9bfcd136f06.tar.bz2 scummvm-rg350-a8da69bca54c422c1d89cf14bfa4a9bfcd136f06.zip |
fixed some broken scaler related checks
svn-id: r10595
-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; |