[Scummvm-git-logs] scummvm master -> 9a35674cfca802fa5d410a47dacc2db97c0b9f5e

aquadran aquadran at gmail.com
Sat Oct 17 16:11:17 UTC 2020


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:
9a35674cfc Merge pull request #2536 from lmerckx/virt-mous-pos


Commit: 9a35674cfca802fa5d410a47dacc2db97c0b9f5e
    https://github.com/scummvm/scummvm/commit/9a35674cfca802fa5d410a47dacc2db97c0b9f5e
Author: LMerckx (laurent-merckx at skynet.be)
Date: 2020-10-17T18:11:13+02:00

Commit Message:
Merge pull request #2536 from lmerckx/virt-mous-pos

GRAPHICS: Problem with virtual mouse position in an overlay when full…

Changed paths:
    backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp


diff --git a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
index d6b3241c8f..cf8605fb6c 100644
--- a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
+++ b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
@@ -672,7 +672,7 @@ int16 OpenGLSdlGraphics3dManager::getOverlayWidth() const {
 }
 
 void OpenGLSdlGraphics3dManager::warpMouse(int x, int y) {
-	if (_frameBuffer) {
+	if (!_overlayVisible && _frameBuffer) {
 		// Scale from game coordinates to screen coordinates
 		x = (x * _gameRect.getWidth() * _overlayScreen->getWidth()) / _frameBuffer->getWidth();
 		y = (y * _gameRect.getHeight() * _overlayScreen->getHeight()) / _frameBuffer->getHeight();




More information about the Scummvm-git-logs mailing list