aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-03-21 00:43:16 +0100
committerJohannes Schickel2011-03-21 00:43:16 +0100
commitc064fa5c5bb0f0fd15342e27b047dadfcbf08d56 (patch)
treef700a0566141fdb2a4f412b0f0a2b587e5284030
parent96c7f0d22d26e46f40c2c6499f620e2a1e3ecb9b (diff)
downloadscummvm-rg350-c064fa5c5bb0f0fd15342e27b047dadfcbf08d56.tar.gz
scummvm-rg350-c064fa5c5bb0f0fd15342e27b047dadfcbf08d56.tar.bz2
scummvm-rg350-c064fa5c5bb0f0fd15342e27b047dadfcbf08d56.zip
OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 135b1fcded..4ac2747d25 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1270,10 +1270,7 @@ void OpenGLGraphicsManager::adjustMousePosition(int16 &x, int16 &y) {
if (_overlayVisible)
return;
- if (_videoMode.mode == OpenGL::GFX_NORMAL) {
- x /= _videoMode.scaleFactor;
- y /= _videoMode.scaleFactor;
- } else if (!_overlayVisible) {
+ if (!_overlayVisible) {
x -= _displayX;
y -= _displayY;