OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.
This commit is contained in:
parent
96c7f0d22d
commit
c064fa5c5b
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue