From 4b4ce9dc6b63e76d90188841db7d2ff88c10477e Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Tue, 31 Jul 2012 18:59:36 +0100 Subject: 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. --- backends/graphics/gph/gph-graphics.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'backends') 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) { -- cgit v1.2.3