[Scummvm-cvs-logs] SF.net SVN: scummvm: [20842] scummvm/trunk/gui
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Feb 24 12:26:08 CET 2006
Revision: 20842
Author: eriktorbjorn
Date: 2006-02-24 12:25:34 -0800 (Fri, 24 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20842&view=rev
Log Message:
-----------
Fixed redraw glitch. Our editable widgets were asking the theme to draw a very
wide caret. Changed that width to 1.
Modified Paths:
--------------
scummvm/trunk/gui/ThemeNew.cpp
scummvm/trunk/gui/editable.cpp
Modified: scummvm/trunk/gui/ThemeNew.cpp
===================================================================
--- scummvm/trunk/gui/ThemeNew.cpp 2006-02-24 19:38:16 UTC (rev 20841)
+++ scummvm/trunk/gui/ThemeNew.cpp 2006-02-24 20:25:34 UTC (rev 20842)
@@ -729,7 +729,7 @@
if (!_initOk)
return;
- restoreBackground(Common::Rect(r.left, r.top, r.left+1, r.bottom));
+ restoreBackground(r);
if (!erase) {
_screen.vLine(r.left, r.top, r.bottom, _colors[kCaretColor]);
} else if (r.top >= 0) {
Modified: scummvm/trunk/gui/editable.cpp
===================================================================
--- scummvm/trunk/gui/editable.cpp 2006-02-24 19:38:16 UTC (rev 20841)
+++ scummvm/trunk/gui/editable.cpp 2006-02-24 20:25:34 UTC (rev 20842)
@@ -155,7 +155,7 @@
x += getAbsX();
y += getAbsY();
- g_gui.theme()->drawCaret(Common::Rect(x, y, x+editRect.width(), y+editRect.height()-2), erase);
+ g_gui.theme()->drawCaret(Common::Rect(x, y, x + 1, y + editRect.height() - 2), erase);
_caretVisible = !erase;
}
More information about the Scummvm-git-logs
mailing list