aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-15 17:23:27 +0000
committerJohannes Schickel2009-07-15 17:23:27 +0000
commit6a15e14d3ff0804efb08020c86c60c6c818aa1b4 (patch)
treed6ce35f6f385ac591c2270c79ba384f1e61000c4
parent7b55b5f5e2dbfd59a5936cb4671060d7b3b6ff81 (diff)
downloadscummvm-rg350-6a15e14d3ff0804efb08020c86c60c6c818aa1b4.tar.gz
scummvm-rg350-6a15e14d3ff0804efb08020c86c60c6c818aa1b4.tar.bz2
scummvm-rg350-6a15e14d3ff0804efb08020c86c60c6c818aa1b4.zip
Fix bug, which caused the ListWidget to draw a widget background around the selected item, when the ListWidget had no focus.
svn-id: r42511
-rw-r--r--gui/ListWidget.cpp9
1 files changed, 2 insertions, 7 deletions
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;