diff options
author | Fabio Battaglia | 2011-08-09 14:06:31 +0200 |
---|---|---|
committer | Fabio Battaglia | 2011-08-09 14:06:31 +0200 |
commit | 3fe81198ffa2f04b258e889001fc1c2a180b0350 (patch) | |
tree | b0b9a6008bfcd34f69de55126c17f04d967bcca8 /backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | |
parent | 521dfaa980c56524990dbf743fe6a94aeaeec9b9 (diff) | |
download | scummvm-rg350-3fe81198ffa2f04b258e889001fc1c2a180b0350.tar.gz scummvm-rg350-3fe81198ffa2f04b258e889001fc1c2a180b0350.tar.bz2 scummvm-rg350-3fe81198ffa2f04b258e889001fc1c2a180b0350.zip |
DINGUX: hopefully fix the cursor palette problem
The port wasn't keeping track of the CursorPalette feature
correctly. This should fix it for good.
Diffstat (limited to 'backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp')
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp index 5493929bb9..17a95688f3 100644 --- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp @@ -427,6 +427,7 @@ void DINGUXSdlGraphicsManager::hideOverlay() { } bool DINGUXSdlGraphicsManager::loadGFXMode() { + debug("Game ScreenMode = %d*%d", _videoMode.screenWidth, _videoMode.screenHeight); // Forcefully disable aspect ratio correction for games // which starts with a native 240px height resolution. @@ -435,7 +436,6 @@ bool DINGUXSdlGraphicsManager::loadGFXMode() { _videoMode.aspectRatioCorrection = false; } - debug("Game ScreenMode = %d*%d", _videoMode.screenWidth, _videoMode.screenHeight); if (_videoMode.screenWidth > 320 || _videoMode.screenHeight > 240) { _videoMode.aspectRatioCorrection = false; setGraphicsMode(GFX_HALF); @@ -473,9 +473,13 @@ bool DINGUXSdlGraphicsManager::hasFeature(OSystem::Feature f) { void DINGUXSdlGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) { switch (f) { - case OSystem::kFeatureAspectRatioCorrection: + case OSystem::kFeatureAspectRatioCorrection: setAspectRatioCorrection(enable); break; + case OSystem::kFeatureCursorPalette: + _cursorPaletteDisabled = !enable; + blitCursor(); + break; default: break; } @@ -485,8 +489,10 @@ bool DINGUXSdlGraphicsManager::getFeatureState(OSystem::Feature f) { assert(_transactionMode == kTransactionNone); switch (f) { - case OSystem::kFeatureAspectRatioCorrection: - return _videoMode.aspectRatioCorrection; + case OSystem::kFeatureAspectRatioCorrection: + return _videoMode.aspectRatioCorrection; + case OSystem::kFeatureCursorPalette: + return !_cursorPaletteDisabled; default: return false; } |