From ffe85c6d402d7819156c3367cf36182d3e127d35 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Oct 2012 23:20:02 +0300 Subject: Fix listbox selection rectangle. --- src/gui/widgets/listbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2