summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-18 16:59:18 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-18 16:59:18 +0000
commitd5e9f527c4113dfa196448d5f8ca9e63774ab691 (patch)
treeeb501806f2258e0132b1cc3a6af91069b014a70f /src/gui/skill.cpp
parent2e749068a812e75abb86abd7840723ef0ad4f813 (diff)
downloadmana-d5e9f527c4113dfa196448d5f8ca9e63774ab691.tar.gz
mana-d5e9f527c4113dfa196448d5f8ca9e63774ab691.tar.bz2
mana-d5e9f527c4113dfa196448d5f8ca9e63774ab691.tar.xz
mana-d5e9f527c4113dfa196448d5f8ca9e63774ab691.zip
Use the window container instead of the graphics class to calculate window positions.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 0af8511b..604a19cc 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -28,14 +28,12 @@
#include "button.h"
#include "listbox.h"
#include "scrollarea.h"
+#include "windowcontainer.h"
#include "../localplayer.h"
-#include "../graphics.h"
#include "../utils/dtor.h"
-extern Graphics *graphics;
-
const char *skill_db[] = {
// 0-99
"", "Basic", "Sword", "Two hand", "HP regeneration", "Bash", "Provoke", "Magnum", "Endure", "MP regeneration",
@@ -66,7 +64,7 @@ SkillDialog::SkillDialog():
Window("Skills")
{
setWindowName("Skills");
- setDefaultSize(graphics->getWidth() - 255, 25, 240, 240);
+ setDefaultSize(windowContainer->getWidth() - 255, 25, 240, 240);
mSkillListBox = new ListBox(this);
ScrollArea *skillScrollArea = new ScrollArea(mSkillListBox);