diff options
author | Eugene Sandulenko | 2019-10-06 12:48:38 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-06 12:48:38 +0200 |
commit | cf87c64635af28b7f9bda681200348f4074b7dab (patch) | |
tree | f62b1b90a5ad6b588c3c00957c75a638b7693a4d | |
parent | a7c497af3b12b84df9dd1e7612a561df7388d050 (diff) | |
download | scummvm-rg350-cf87c64635af28b7f9bda681200348f4074b7dab.tar.gz scummvm-rg350-cf87c64635af28b7f9bda681200348f4074b7dab.tar.bz2 scummvm-rg350-cf87c64635af28b7f9bda681200348f4074b7dab.zip |
GCW0: The hardware has its own downscaler, do not use half-scaler
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp index a7dbed18c8..f44fd99334 100644 --- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp @@ -112,11 +112,14 @@ void DINGUXSdlGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFor _videoMode.screenWidth = w; _videoMode.screenHeight = h; + +#ifndef GCW0 if (w > 320 || h > 240) { setGraphicsMode(GFX_HALF); setGraphicsModeIntern(); _window->toggleMouseGrab(); } +#endif _transactionDetails.sizeChanged = true; } @@ -130,7 +133,7 @@ void DINGUXSdlGraphicsManager::drawMouse() { SDL_Rect dst; int scale; int hotX, hotY; - + const Common::Point virtualCursor = convertWindowToVirtual(_cursorX, _cursorY); if (_videoMode.mode == GFX_HALF && !_overlayVisible) { @@ -413,11 +416,14 @@ bool DINGUXSdlGraphicsManager::loadGFXMode() { _videoMode.aspectRatioCorrection = false; } +#ifndef GCW0 if (_videoMode.screenWidth > 320 || _videoMode.screenHeight > 240) { _videoMode.aspectRatioCorrection = false; setGraphicsMode(GFX_HALF); debug("GraphicsMode set to HALF"); - } else { + } else +#endif + { setGraphicsMode(GFX_NORMAL); debug("GraphicsMode set to NORMAL"); } |