From aca696b5c784bfbb426c50ac58e93e3d61944b39 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 9 Apr 2008 14:25:42 +0000 Subject: Fixed problem with row height in shop list box. --- src/gui/shoplistbox.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/shoplistbox.h') diff --git a/src/gui/shoplistbox.h b/src/gui/shoplistbox.h index aeceab1b..837f745f 100644 --- a/src/gui/shoplistbox.h +++ b/src/gui/shoplistbox.h @@ -52,6 +52,11 @@ class ShopListBox : public ListBox */ void draw(gcn::Graphics *graphics); + /** + * Returns the height of a row. + */ + unsigned int getRowHeight() const { return mRowHeight; } + void mousePressed(gcn::MouseEvent &event); /** @@ -79,7 +84,7 @@ class ShopListBox : public ListBox */ ShopItems *mShopItems; - int mRowHeight; /**< Row Height */ + unsigned int mRowHeight; /**< Row Height */ bool mPriceCheck; }; -- cgit v1.2.3-70-g09d2