[Scummvm-cvs-logs] scummvm master -> c064fa5c5bb0f0fd15342e27b047dadfcbf08d56
lordhoto
lordhoto at gmail.com
Mon Mar 21 00:44:48 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c064fa5c5b OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.
Commit: c064fa5c5bb0f0fd15342e27b047dadfcbf08d56
https://github.com/scummvm/scummvm/commit/c064fa5c5bb0f0fd15342e27b047dadfcbf08d56
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2011-03-20T16:43:16-07:00
Commit Message:
OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.
Changed paths:
backends/graphics/opengl/opengl-graphics.cpp
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 135b1fc..4ac2747 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;
More information about the Scummvm-git-logs
mailing list