summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-20 12:50:26 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-20 12:50:26 +0000
commit90e5ce7e958418f0d39d38112d33d3190a78baea (patch)
tree012150b22e971e44d0f7e795ef48384e15392940 /src/gui/status.cpp
parent9ca202ae89bbe60f2cd1c8e3249a4fe3f8972a2b (diff)
downloadmana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.gz
mana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.bz2
mana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.xz
mana-90e5ce7e958418f0d39d38112d33d3190a78baea.zip
TMW now uses latest Guichan CVS, and doesn't work with Guichan 0.2.0 anymore!
Also fixed a crash on clicking wallpaper in login phase.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index a515b6c5..f8db9808 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -75,7 +75,7 @@ StatusWindow::StatusWindow():
inventoryButton->setPosition(skillsButton->getX() + skillsButton->getWidth() + CONTROLS_SEPARATOR, statsButton->getY());
setupButton->setPosition(inventoryButton->getX() + inventoryButton->getWidth() + CONTROLS_SEPARATOR, statsButton->getY());
- setSize(250, statsButton->getY() + statsButton->getHeight() + WIN_BORDER);
+ setContentSize(250, statsButton->getY() + statsButton->getHeight() + WIN_BORDER);
add(hp);
add(sp);
@@ -117,7 +117,7 @@ void StatusWindow::update()
sprintf(tempstr, "%s Lvl: % 2i Job: % 2i",
char_info->name, char_info->lv, char_info->job_lv);
- setTitle(tempstr);
+ setCaption(tempstr);
sprintf(tempstr, "%d / %d", char_info->hp, char_info->max_hp);
hpValue->setCaption(tempstr);