[Scummvm-git-logs] scummvm master -> fe3ddd12a2fe826e61916d655e635c365086d6bf

sev- sev at scummvm.org
Fri Jul 17 22:47:03 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:
fe3ddd12a2 GRAPHICS: MACGUI: Initial code for marking whole text


Commit: fe3ddd12a2fe826e61916d655e635c365086d6bf
    https://github.com/scummvm/scummvm/commit/fe3ddd12a2fe826e61916d655e635c365086d6bf
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-07-18T00:46:16+02:00

Commit Message:
GRAPHICS: MACGUI: Initial code for marking whole text

Changed paths:
    graphics/macgui/mactext.cpp


diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index ae6016edbc..27ee0dce2d 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -741,6 +741,16 @@ void MacText::setEditable(bool editable) {
 	if (editable) {
 		// TODO: Select whole region. This is done every time the text is set from
 		// uneditable to editable.
+		_selectedText.startX = 0;
+		_selectedText.startY = 0;
+		_selectedText.startCol = 0;
+		_selectedText.startRow = 0;
+
+		_selectedText.endX = getLineWidth(getLineCount() - 1);;
+		_selectedText.endY = getTextHeight();
+		_selectedText.endCol = getLineCharWidth(getLineCount() - 1);
+		_selectedText.endRow = getLineCount() - 1;
+
 		setActive(editable);
 		_wm->setActiveWidget(this);
 	} else {




More information about the Scummvm-git-logs mailing list