diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-18 23:20:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-18 23:20:02 +0300 |
commit | ffe85c6d402d7819156c3367cf36182d3e127d35 (patch) | |
tree | 1fe1bef65fd1e2ff6cfc18e9c7cf275f91087673 | |
parent | f3bb1394d099af6620b44e2387a362273390bcab (diff) | |
download | manaverse-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.gz manaverse-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.bz2 manaverse-ffe85c6d402d7819156c3367cf36182d3e127d35.tar.xz manaverse-ffe85c6d402d7819156c3367cf36182d3e127d35.zip |
Fix listbox selection rectangle.
-rw-r--r-- | src/gui/widgets/listbox.cpp | 4 |
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 |