OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.

This commit is contained in:
Johannes Schickel 2011-03-21 00:43:16 +01:00
parent 96c7f0d22d
commit c064fa5c5b

View file

@ -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;