[Scummvm-git-logs] scummvm master -> 4272eaabc33e27812e2241a3905bc331f313d5e5

sev- sev at scummvm.org
Sat May 2 23:34:19 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:
4272eaabc3 GRAPHICS: MACGUI: Corrected mouse cursor positioning in editable text


Commit: 4272eaabc33e27812e2241a3905bc331f313d5e5
    https://github.com/scummvm/scummvm/commit/4272eaabc33e27812e2241a3905bc331f313d5e5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-05-03T01:33:54+02:00

Commit Message:
GRAPHICS: MACGUI: Corrected mouse cursor positioning in editable text

Changed paths:
    graphics/macgui/maceditabletext.cpp


diff --git a/graphics/macgui/maceditabletext.cpp b/graphics/macgui/maceditabletext.cpp
index c30df8c120..ee201ce3be 100644
--- a/graphics/macgui/maceditabletext.cpp
+++ b/graphics/macgui/maceditabletext.cpp
@@ -432,7 +432,7 @@ bool MacEditableText::processEvent(Common::Event &event) {
 				if (_menu)
 					_menu->enableCommand("Edit", "Copy", false);
 
-				int x = event.mouse.x - getDimensions().left - 2;
+				int x = event.mouse.x - getDimensions().left;
 				int y = event.mouse.y - getDimensions().top + _scrollPos;
 
 				MacText::getRowCol(x, y, nullptr, nullptr, &_cursorRow, &_cursorCol);




More information about the Scummvm-git-logs mailing list