diff options
| -rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 16 | 
1 files changed, 7 insertions, 9 deletions
| diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index edc7a5f28e..f4ffd47f75 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -1276,15 +1276,13 @@ void OpenGLGraphicsManager::adjustMousePosition(int16 &x, int16 &y) {  	if (_overlayVisible)  		return; -	if (!_overlayVisible) { -		x -= _displayX; -		y -= _displayY; - -		if (_displayWidth != _videoMode.screenWidth) -			x = x * _videoMode.screenWidth / _displayWidth; -		if (_displayHeight != _videoMode.screenHeight) -			y = y * _videoMode.screenHeight / _displayHeight; -	} +	x -= _displayX; +	y -= _displayY; + +	if (_displayWidth != _videoMode.screenWidth) +		x = x * _videoMode.screenWidth / _displayWidth; +	if (_displayHeight != _videoMode.screenHeight) +		y = y * _videoMode.screenHeight / _displayHeight;  }  bool OpenGLGraphicsManager::saveScreenshot(const char *filename) { | 
