[Scummvm-cvs-logs] SF.net SVN: scummvm:[42511] scummvm/trunk/gui/ListWidget.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Jul 15 19:23:28 CEST 2009


Revision: 42511
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42511&view=rev
Author:   lordhoto
Date:     2009-07-15 17:23:27 +0000 (Wed, 15 Jul 2009)

Log Message:
-----------
Fix bug, which caused the ListWidget to draw a widget background around the selected item, when the ListWidget had no focus.

Modified Paths:
--------------
    scummvm/trunk/gui/ListWidget.cpp

Modified: scummvm/trunk/gui/ListWidget.cpp
===================================================================
--- scummvm/trunk/gui/ListWidget.cpp	2009-07-15 17:07:45 UTC (rev 42510)
+++ scummvm/trunk/gui/ListWidget.cpp	2009-07-15 17:23:27 UTC (rev 42511)
@@ -407,13 +407,8 @@
 		bool inverted = false;
 
 		// Draw the selected item inverted, on a highlighted background.
-		if (_selectedItem == pos) {
-			if (_hasFocus)
-				inverted = true;
-			else
-				g_gui.theme()->drawWidgetBackground(Common::Rect(_x, y - 1, _x + _w - 1, y + fontHeight - 1),
-													0, ThemeEngine::kWidgetBackgroundBorderSmall);
-		}
+		if (_selectedItem == pos)
+			inverted = true;
 
 		Common::Rect r(getEditRect());
 		int pad = _leftPadding;


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