fixed some broken scaler related checks

svn-id: r10595
This commit is contained in:
Max Horn 2003-10-05 00:28:23 +00:00
parent 4a84b356f8
commit a8da69bca5
2 changed files with 3 additions and 3 deletions

View file

@ -387,7 +387,7 @@ uint32 OSystem_SDL::property(int param, Property *value) {
#endif #endif
return 1; return 1;
} else if (param == PROP_SET_GFX_MODE) { } 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; return 0;
_mode = value->gfx_mode; _mode = value->gfx_mode;

View file

@ -636,7 +636,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
} }
} else if (param == PROP_SET_GFX_MODE) { } else if (param == PROP_SET_GFX_MODE) {
if (value->gfx_mode > 10) { // OpenGL modes if (value->gfx_mode == GFX_BILINEAR) { // OpenGL mode
if (!_usingOpenGL) { if (!_usingOpenGL) {
_usingOpenGL = true; _usingOpenGL = true;
_mode = GFX_NORMAL; _mode = GFX_NORMAL;
@ -652,7 +652,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
fb2gl.setBilinearMode(_glBilinearFilter); fb2gl.setBilinearMode(_glBilinearFilter);
break; break;
default: // SDL backend default: // SDL backend
if (value->gfx_mode >= 11) if (value->gfx_mode > 11) // FIXME! HACK, hard coded threshold, not good
return 0; return 0;
_mode = value->gfx_mode; _mode = value->gfx_mode;