[Scummvm-cvs-logs] SF.net SVN: scummvm:[52506] scummvm/branches/gsoc2010-opengl/backends/ platform/sdl/sdl.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Sep 3 17:52:31 CEST 2010


Revision: 52506
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52506&view=rev
Author:   lordhoto
Date:     2010-09-03 15:52:31 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
OPENGL: Properly initialize the graphics manager again.

Starting with r52503 the graphics manager's only initialize their event
observer when initEventObserver is called. It seems like it was an
oversight that this was not done in OSystem_SDL::setGraphicsMode, when a new
graphics manager was initialized.

This should fix window resizing with the OpenGL graphic's manager and mouse
movement.

Modified Paths:
--------------
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp	2010-09-03 12:42:35 UTC (rev 52505)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp	2010-09-03 15:52:31 UTC (rev 52506)
@@ -358,10 +358,12 @@
 			if (_graphicsMode >= _sdlModesCount && mode < _sdlModesCount) {
 				delete _graphicsManager;
 				_graphicsManager = new SdlGraphicsManager();
+				((SdlGraphicsManager *)_graphicsManager)->initEventObserver();
 				_graphicsManager->beginGFXTransaction();
 			} else if (_graphicsMode < _sdlModesCount && mode >= _sdlModesCount) {
 				delete _graphicsManager;
 				_graphicsManager = new OpenGLSdlGraphicsManager();
+				((OpenGLSdlGraphicsManager *)_graphicsManager)->initEventObserver();
 				_graphicsManager->beginGFXTransaction();
 			}
 			_graphicsMode = mode;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list