mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
cleanup
svn-id: r10596
This commit is contained in:
parent
a8da69bca5
commit
48fd7e39d5
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user