summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-18 23:20:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-18 23:20:02 +0300
commitffe85c6d402d7819156c3367cf36182d3e127d35 (patch)
tree1fe1bef65fd1e2ff6cfc18e9c7cf275f91087673 /src/gui/widgets
parentf3bb1394d099af6620b44e2387a362273390bcab (diff)
downloadplus-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.gz
plus-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.bz2
plus-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.xz
plus-ffe85c6d402d7819156c3367cf36182d3e127d35.zip
Fix listbox selection rectangle.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/listbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index 7885307e6..47011976c 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -97,8 +97,8 @@ void ListBox::draw(gcn::Graphics *graphics)
// Draw filled rectangle around the selected list element
if (mSelected >= 0)
{
- graphics->fillRectangle(gcn::Rectangle(mPadding, height * mSelected,
- getWidth() - 2 * mPadding, height));
+ graphics->fillRectangle(gcn::Rectangle(mPadding,
+ height * mSelected + mPadding, getWidth() - 2 * mPadding, height));
}
// Draw the list elements