summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-31 09:51:31 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-31 09:51:31 -0600
commit2c5f308192d18b5447a5b0e2ee3428984c1f1b78 (patch)
treefb6eb3b3e626a1cf09668c5fef16531ac5651bf3
parent908a43a0522cf879daed4e671f187eb25329cfa7 (diff)
downloadmana-2c5f308192d18b5447a5b0e2ee3428984c1f1b78.tar.gz
mana-2c5f308192d18b5447a5b0e2ee3428984c1f1b78.tar.bz2
mana-2c5f308192d18b5447a5b0e2ee3428984c1f1b78.tar.xz
mana-2c5f308192d18b5447a5b0e2ee3428984c1f1b78.zip
Remove unused background
-rw-r--r--src/gui/equipmentwindow.cpp7
-rw-r--r--src/gui/equipmentwindow.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 88cd7b74..7111e7fc 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -68,7 +68,6 @@ EquipmentWindow::EquipmentWindow():
#ifdef TMWSERV_SUPPORT
mEquipment(equipment),
#endif
- mBackground(NULL),
mSelected(-1)
{
mItemPopup = new ItemPopup;
@@ -102,10 +101,6 @@ EquipmentWindow::EquipmentWindow():
mEquipBox[i].posY = boxPosition[i][1] + getTitleBarHeight();
}
- ResourceManager *resman = ResourceManager::getInstance();
- mBackground = resman->getImage("graphics/gui/equip_bg.png");
- if (mBackground) mBackground->setAlpha(0.3);
-
#ifdef EATHENA_SUPPORT
mEquipment = player_node->mEquipment.get();
mInventory = player_node->getInventory();
@@ -114,8 +109,6 @@ EquipmentWindow::EquipmentWindow():
EquipmentWindow::~EquipmentWindow()
{
- if (mBackground != NULL)
- mBackground->decRef();
delete mItemPopup;
delete mUnequip;
}
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 7f7150ff..3e0afb48 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -118,7 +118,6 @@ class EquipmentWindow : public Window, public gcn::ActionListener
Inventory *mInventory;
#endif
gcn::Button *mUnequip; /**< Button for unequipping. */
- Image *mBackground; /**< Background Image. */
EquipBox mEquipBox[EQUIP_VECTOREND]; /**< Equipment Boxes. */
ItemPopup *mItemPopup;