From 32badd4b6f843cb74fdc3238fe92119518c8c0ab Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 16 Mar 2006 15:50:00 +0000 Subject: A bunch of cosmetic changes. --- src/gui/itemcontainer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/itemcontainer.cpp') diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 874c0b63..e0730ced 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -76,8 +76,7 @@ void ItemContainer::draw(gcn::Graphics* graphics) { int gridWidth = mItemset->get(0)->getWidth() + 4; int gridHeight = mItemset->get(0)->getHeight() + 10; - int w = getWidth(); - int columns = w / gridWidth; + int columns = getWidth() / gridWidth; // Have at least 1 column if (columns < 1) @@ -170,8 +169,7 @@ void ItemContainer::mousePress(int mx, int my, int button) { int gridWidth = mItemset->get(0)->getWidth() + 4; int gridHeight = mItemset->get(0)->getHeight() + 10; - int w = getWidth(); - int columns = w / gridWidth; + int columns = getWidth() / gridWidth; if (button == gcn::MouseInput::LEFT || gcn::MouseInput::RIGHT) { -- cgit v1.2.3-60-g2f50