[Scummvm-cvs-logs] scummvm master -> 4b4ce9dc6b63e76d90188841db7d2ff88c10477e

djwillis John.Willis at Distant-earth.com
Tue Jul 31 20:04:52 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4b4ce9dc6b GPH: Add extra call to SDL_ShowCursor(SDL_DISABLE).


Commit: 4b4ce9dc6b63e76d90188841db7d2ff88c10477e
    https://github.com/scummvm/scummvm/commit/4b4ce9dc6b63e76d90188841db7d2ff88c10477e
Author: David-John Willis (John.Willis at Distant-earth.com)
Date: 2012-07-31T10:59:36-07:00

Commit Message:
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.

Changed paths:
    backends/graphics/gph/gph-graphics.cpp



diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp
index 8521e88..9255356 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) {






More information about the Scummvm-git-logs mailing list