From 6a15e14d3ff0804efb08020c86c60c6c818aa1b4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 15 Jul 2009 17:23:27 +0000 Subject: Fix bug, which caused the ListWidget to draw a widget background around the selected item, when the ListWidget had no focus. svn-id: r42511 --- gui/ListWidget.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gui') diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index 78372fcba8..fe6ec5383f 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -407,13 +407,8 @@ void ListWidget::drawWidget() { 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; -- cgit v1.2.3