diff options
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
| -rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 39 | 
1 files changed, 0 insertions, 39 deletions
| diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 046be4c669..57c2378649 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -67,10 +67,6 @@ OpenGLGraphicsManager::OpenGLGraphicsManager()  }  OpenGLGraphicsManager::~OpenGLGraphicsManager() { -	// Unregister the event observer -	if (g_system->getEventManager()->getEventDispatcher() != NULL) -		g_system->getEventManager()->getEventDispatcher()->unregisterObserver(this); -  	free(_gamePalette);  	free(_cursorPalette); @@ -79,11 +75,6 @@ OpenGLGraphicsManager::~OpenGLGraphicsManager() {  	delete _cursorTexture;  } -void OpenGLGraphicsManager::initEventObserver() { -	// Register the graphics manager as a event observer -	g_system->getEventManager()->getEventDispatcher()->registerObserver(this, 10, false); -} -  //  // Feature  // @@ -1282,36 +1273,6 @@ void OpenGLGraphicsManager::adjustMousePosition(int16 &x, int16 &y) {  	}  } -bool OpenGLGraphicsManager::notifyEvent(const Common::Event &event) { -	switch (event.type) { -	case Common::EVENT_MOUSEMOVE: -		if (!event.synthetic) { -			_cursorState.x = event.mouse.x; -			_cursorState.y = event.mouse.y; -		} -	case Common::EVENT_LBUTTONDOWN: -	case Common::EVENT_RBUTTONDOWN: -	case Common::EVENT_WHEELUP: -	case Common::EVENT_WHEELDOWN: -	case Common::EVENT_MBUTTONDOWN: -	case Common::EVENT_LBUTTONUP: -	case Common::EVENT_RBUTTONUP: -	case Common::EVENT_MBUTTONUP: -		if (!event.synthetic) { -			Common::Event newEvent(event); -			newEvent.synthetic = true; -			adjustMousePosition(newEvent.mouse.x, newEvent.mouse.y); -			g_system->getEventManager()->pushEvent(newEvent); -		} -		return !event.synthetic; - -	default: -		break; -	} - -	return false; -} -  bool OpenGLGraphicsManager::saveScreenshot(const char *filename) {  	int width = _videoMode.hardwareWidth;  	int height = _videoMode.hardwareHeight; | 
