summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
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);