summaryrefslogtreecommitdiff
path: root/src/gui/listbox.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-26 08:24:01 -0700
committerIra Rice <irarice@gmail.com>2009-02-26 08:24:01 -0700
commit0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a (patch)
tree51cec1c070c97b7d03120254710da1577daf5f92 /src/gui/listbox.cpp
parent0dde31c3db09113639fa443142995b6efcff6646 (diff)
downloadmana-client-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.gz
mana-client-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.bz2
mana-client-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.xz
mana-client-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.zip
Fixed an error in shoplistboxes as identified by Octalot.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/listbox.cpp')
-rw-r--r--src/gui/listbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/listbox.cpp b/src/gui/listbox.cpp
index 8ae68e09..45d14884 100644
--- a/src/gui/listbox.cpp
+++ b/src/gui/listbox.cpp
@@ -56,7 +56,7 @@ void ListBox::draw(gcn::Graphics *graphics)
const int fontHeight = getFont()->getHeight();
- // Draw rectangle below the selected list element
+ // Draw filled rectangle around the selected list element
if (mSelected >= 0)
graphics->fillRectangle(gcn::Rectangle(0, fontHeight * mSelected,
getWidth(), fontHeight));
@@ -97,6 +97,7 @@ void ListBox::setSelected(int selected)
mSelected = selected;
}
}
+ gcn::ListBox::setSelected(mSelected);
}
// -- KeyListener notifications