diff options
author | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
commit | 6901ee0242c128d3b6026f83a10da4ca90e265e0 (patch) | |
tree | aa901fd36658b97bae8f3e83c21aafa37a2b1595 /backends/platform/3ds/osystem-graphics.cpp | |
parent | e34d27c1bdc7b58368767d250494ad5946a0bf67 (diff) | |
download | scummvm-rg350-6901ee0242c128d3b6026f83a10da4ca90e265e0.tar.gz scummvm-rg350-6901ee0242c128d3b6026f83a10da4ca90e265e0.tar.bz2 scummvm-rg350-6901ee0242c128d3b6026f83a10da4ca90e265e0.zip |
3DS: Use the full resolution for the overlay on the top screen
Diffstat (limited to 'backends/platform/3ds/osystem-graphics.cpp')
-rw-r--r-- | backends/platform/3ds/osystem-graphics.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/platform/3ds/osystem-graphics.cpp b/backends/platform/3ds/osystem-graphics.cpp index 5c65cac648..8fb92f4d48 100644 --- a/backends/platform/3ds/osystem-graphics.cpp +++ b/backends/platform/3ds/osystem-graphics.cpp @@ -146,12 +146,16 @@ int OSystem_3DS::getGraphicsMode() const { void OSystem_3DS::initSize(uint width, uint height, const Graphics::PixelFormat *format) { debug("3ds initsize w:%d h:%d", width, height); + int oldScreen = config.screen; loadConfig(); + if (config.screen != oldScreen) { + _screenChangeId++; + } _gameWidth = width; _gameHeight = height; _gameTopTexture.create(width, height, _pfGameTexture); - _overlay.create(getOverlayWidth(), getOverlayHeight(), _pfGameTexture); + _overlay.create(400, 320, _pfGameTexture); _topHalfWidth = _topWidth / 2; _topHalfHeight = _topHeight / 2; @@ -560,7 +564,7 @@ int16 OSystem_3DS::getOverlayHeight() { } int16 OSystem_3DS::getOverlayWidth() { - return 320; + return config.screen == kScreenTop ? 400 : 320; } bool OSystem_3DS::showMouse(bool visible) { |