aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorDavid-John Willis2012-07-31 18:59:36 +0100
committerDavid-John Willis2012-07-31 18:59:36 +0100
commit4b4ce9dc6b63e76d90188841db7d2ff88c10477e (patch)
tree9a34f7854fcf747e5c8faf50774c8b1996ffddcb /backends
parent0cf1c220fa39a0157d5d19ab22e5ce1eb65596c7 (diff)
downloadscummvm-rg350-4b4ce9dc6b63e76d90188841db7d2ff88c10477e.tar.gz
scummvm-rg350-4b4ce9dc6b63e76d90188841db7d2ff88c10477e.tar.bz2
scummvm-rg350-4b4ce9dc6b63e76d90188841db7d2ff88c10477e.zip
GPH: Add extra call to SDL_ShowCursor(SDL_DISABLE).
* This is needed on the hacked SDL on the GP2X after any call to SDL_SetVideoMode. It does not impact other GPH devices.
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/gph/gph-graphics.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp
index 8521e88eaf..92553564bf 100644
--- a/backends/graphics/gph/gph-graphics.cpp
+++ b/backends/graphics/gph/gph-graphics.cpp
@@ -486,7 +486,13 @@ bool GPHGraphicsManager::loadGFXMode() {
if (_videoMode.aspectRatioCorrection)
_videoMode.overlayHeight = real2Aspect(_videoMode.overlayHeight);
}
- return SurfaceSdlGraphicsManager::loadGFXMode();
+ SurfaceSdlGraphicsManager::loadGFXMode();
+
+ // The old GP2X hacked SDL needs this after any call to SDL_SetVideoMode
+ // and it does not hurt other devices.
+ SDL_ShowCursor(SDL_DISABLE);
+
+ return true;
}
bool GPHGraphicsManager::hasFeature(OSystem::Feature f) {