svn-id: r10596
This commit is contained in:
Max Horn 2003-10-05 00:40:25 +00:00
parent a8da69bca5
commit 48fd7e39d5
2 changed files with 14 additions and 17 deletions

View File

@ -62,6 +62,19 @@ void OSystem_SDL::load_gfx_mode() {
_tmpScreenWidth = (_screenWidth + 3);
switch(_mode) {
case GFX_NORMAL:
_scaleFactor = 1;
_scaler_proc = Normal1x;
break;
case GFX_DOUBLESIZE:
_scaleFactor = 2;
_scaler_proc = Normal2x;
break;
case GFX_TRIPLESIZE:
_scaleFactor = 3;
_scaler_proc = Normal3x;
break;
case GFX_2XSAI:
_scaleFactor = 2;
_scaler_proc = _2xSaI;
@ -99,25 +112,8 @@ void OSystem_SDL::load_gfx_mode() {
_scaler_proc = DotMatrix;
break;
case GFX_BILINEAR:
case GFX_DOUBLESIZE:
_scaleFactor = 2;
_scaler_proc = Normal2x;
break;
case GFX_TRIPLESIZE:
_scaleFactor = 3;
_scaler_proc = Normal3x;
break;
case GFX_NORMAL:
_scaleFactor = 1;
_scaler_proc = Normal1x;
break;
default:
error("unknown gfx mode %d", _mode);
_scaleFactor = 1;
_scaler_proc = NULL;
}
//

View File

@ -103,6 +103,7 @@ void OSystem_SDL_OpenGL::load_gfx_mode() {
case GFX_BILINEAR:
_usingOpenGL = true;
_mode = GFX_NORMAL;
// FIXME: shouldn't _scaleFactor be set here?
break;
case GFX_NORMAL: