mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-28 15:26:12 +00:00
fixed some broken scaler related checks
svn-id: r10595
This commit is contained in:
parent
4a84b356f8
commit
a8da69bca5
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user