diff options
Diffstat (limited to 'backends/graphics/gph/gph-graphics.cpp')
-rw-r--r-- | backends/graphics/gph/gph-graphics.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp index efadc3ec37..a55a8869bb 100644 --- a/backends/graphics/gph/gph-graphics.cpp +++ b/backends/graphics/gph/gph-graphics.cpp @@ -61,10 +61,8 @@ int GPHGraphicsManager::getGraphicsModeScale(int mode) const { return scale; } -void GPHGraphicsManager::setGraphicsModeIntern() { - Common::StackLock lock(_graphicsMutex); +ScalerProc *GPHGraphicsManager::getGraphicsScalerProc(int mode) const { ScalerProc *newScalerProc = 0; - switch (_videoMode.mode) { case GFX_NORMAL: newScalerProc = Normal1x; @@ -72,22 +70,9 @@ void GPHGraphicsManager::setGraphicsModeIntern() { case GFX_HALF: newScalerProc = DownscaleAllByHalf; break; - - default: - error("Unknown gfx mode %d", _videoMode.mode); } - _scalerProc = newScalerProc; - - if (!_screen || !_hwScreen) - return; - - // Blit everything to the screen - _forceRedraw = true; - - // Even if the old and new scale factors are the same, we may have a - // different scaler for the cursor now. - blitCursor(); + return newScalerProc; } void GPHGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFormat *format) { |