[Scummvm-cvs-logs] scummvm branch-1-8 -> 694508768cbe2c7aa27df66e7fa363502d425b2f
m-kiewitz
m_kiewitz at users.sourceforge.net
Wed Mar 23 23:51:10 CET 2016
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:
694508768c AGI: Fix inaccurate predictive dialog trigger rect
Commit: 694508768cbe2c7aa27df66e7fa363502d425b2f
https://github.com/scummvm/scummvm/commit/694508768cbe2c7aa27df66e7fa363502d425b2f
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-03-23T23:51:00+01:00
Commit Message:
AGI: Fix inaccurate predictive dialog trigger rect
Trigger rect is the rect, that the user needs to click to
trigger the predictive dialog.
Previously cursor char got drawn, rect started right afterwards
In case cursor char is enabled, the rect will get adjusted
accordingly now.
Changed paths:
engines/agi/text.cpp
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 611bd13..702292e 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -809,6 +809,12 @@ void TextMgr::stringEdit(int16 stringMaxLen) {
_inputStringRow = _textPos.row;
_inputStringColumn = _textPos.column;
+ if (_inputCursorChar) {
+ // Cursor character is shown, which means we are one beyond the start of the input
+ // Adjust the column for predictive input dialog
+ _inputStringColumn--;
+ }
+
// Caller can set the input string
_inputStringCursorPos = 0;
while (_inputStringCursorPos < inputStringLen) {
More information about the Scummvm-git-logs
mailing list