[Scummvm-cvs-logs] SF.net SVN: scummvm: [22678] scummvm/trunk/gui

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat May 27 05:38:01 CEST 2006


Revision: 22678
Author:   lordhoto
Date:     2006-05-27 05:37:00 -0700 (Sat, 27 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22678&view=rev

Log Message:
-----------
Fixes caret drawing in EditTextWidgets.

Modified Paths:
--------------
    scummvm/trunk/gui/EditTextWidget.cpp
    scummvm/trunk/gui/ThemeNew.cpp
Modified: scummvm/trunk/gui/EditTextWidget.cpp
===================================================================
--- scummvm/trunk/gui/EditTextWidget.cpp	2006-05-27 12:05:16 UTC (rev 22677)
+++ scummvm/trunk/gui/EditTextWidget.cpp	2006-05-27 12:37:00 UTC (rev 22678)
@@ -89,7 +89,7 @@
 }
 
 Common::Rect EditTextWidget::getEditRect() const {
-	Common::Rect r(2 + _leftPadding, 1, _w - 2 - _leftPadding - _rightPadding, _h);
+	Common::Rect r(2 + _leftPadding, 1, _w - 2 - _leftPadding - _rightPadding, _h-1);
 
 	return r;
 }

Modified: scummvm/trunk/gui/ThemeNew.cpp
===================================================================
--- scummvm/trunk/gui/ThemeNew.cpp	2006-05-27 12:05:16 UTC (rev 22677)
+++ scummvm/trunk/gui/ThemeNew.cpp	2006-05-27 12:37:00 UTC (rev 22678)
@@ -876,7 +876,7 @@
 
 	restoreBackground(r);
 	if (!erase) {
-		_screen.vLine(r.left, r.top, r.bottom, _colors[kCaretColor]);
+		_screen.vLine(r.left, r.top, r.bottom-1, _colors[kCaretColor]);
 	} else if (r.top >= 0) {
 		// FIXME: hack to restore the caret background correctly
 		const OverlayColor search = _colors[kTextInvertedBackground];
@@ -893,7 +893,7 @@
 			src += _screen.w;
 		}
 		if (drawInvBackground) {
-			_screen.vLine(r.left, r.top, r.bottom, search);
+			_screen.vLine(r.left, r.top, r.bottom-1, search);
 		}
 	}
 	addDirtyRect(r);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list