[Scummvm-cvs-logs] SF.net SVN: scummvm: [22052] scummvm/trunk/gui/ListWidget.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Thu Apr 20 01:16:12 CEST 2006
Revision: 22052
Author: eriktorbjorn
Date: 2006-04-20 01:14:55 -0700 (Thu, 20 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22052&view=rev
Log Message:
-----------
If I understand things correctly, this should fix the caret drawing in list
widgets. (The glitch was most noticeable in the modern theme.)
Modified Paths:
--------------
scummvm/trunk/gui/ListWidget.cpp
Modified: scummvm/trunk/gui/ListWidget.cpp
===================================================================
--- scummvm/trunk/gui/ListWidget.cpp 2006-04-20 07:01:55 UTC (rev 22051)
+++ scummvm/trunk/gui/ListWidget.cpp 2006-04-20 08:14:55 UTC (rev 22052)
@@ -375,8 +375,8 @@
}
Common::Rect ListWidget::getEditRect() const {
- Common::Rect r(_hlLeftPadding, 1, _w - _hlLeftPadding - _hlRightPadding, kLineHeight);
- const int offset = (_selectedItem - _currentPos) * kLineHeight;
+ Common::Rect r(_hlLeftPadding, 0, _w - _hlLeftPadding - _hlRightPadding, kLineHeight - 1);
+ const int offset = (_selectedItem - _currentPos) * kLineHeight + _topPadding;
r.top += offset;
r.bottom += offset;
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