diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/gp32/gp32.cpp | 6 | ||||
-rw-r--r-- | backends/sdl/sdl.cpp | 8 | ||||
-rw-r--r-- | backends/sdl/sdl_gl.cpp | 8 |
3 files changed, 15 insertions, 7 deletions
diff --git a/backends/gp32/gp32.cpp b/backends/gp32/gp32.cpp index d81fbc2b8e..e78f185aa5 100644 --- a/backends/gp32/gp32.cpp +++ b/backends/gp32/gp32.cpp @@ -434,11 +434,11 @@ normal_mode:; /* // Distinguish 555 and 565 mode if (sdl_hwscreen->format->Rmask == 0x7C00) - Init_2xSaI(555); + InitScalers(555); else - Init_2xSaI(565); + InitScalers(565); */ - //Init_2xSaI(555); // ph0x fixme? + //InitScalers(555); // ph0x fixme? //ph0x fixme - tmpscreen needed? // Need some extra bytes around when using 2xSaI diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index daf4a58b0d..25e5aec488 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -90,6 +90,10 @@ void OSystem_SDL::load_gfx_mode() { _scaleFactor = 2; _scaler_proc = DotMatrix; break; + case GFX_HQ3X: + _scaleFactor = 3; + _scaler_proc = HQ3x; + break; case GFX_BILINEAR: case GFX_DOUBLESIZE: @@ -135,9 +139,9 @@ void OSystem_SDL::load_gfx_mode() { // Distinguish 555 and 565 mode if (_hwscreen->format->Rmask == 0x7C00) - Init_2xSaI(555); + InitScalers(555); else - Init_2xSaI(565); + InitScalers(565); // Need some extra bytes around when using 2xSaI uint16 *tmp_screen = (uint16 *)calloc(_tmpScreenWidth * (_screenHeight + 3), sizeof(uint16)); diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index 33dbd76dd2..6c1eaed351 100644 --- a/backends/sdl/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp @@ -147,6 +147,10 @@ void OSystem_SDL_OpenGL::load_gfx_mode() { _scaleFactor = 2; _scaler_proc = DotMatrix; break; + case GFX_HQ3X: + _scaleFactor = 3; + _scaler_proc = HQ3x; + break; default: error("unknown gfx mode %d", _mode); @@ -200,9 +204,9 @@ void OSystem_SDL_OpenGL::load_gfx_mode() { // Distinguish 555 and 565 mode if (_hwscreen->format->Rmask == 0x7C00) - Init_2xSaI(555); + InitScalers(555); else - Init_2xSaI(565); + InitScalers(565); } // |