summaryrefslogtreecommitdiff
path: root/src/gui/menuwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/menuwindow.cpp')
-rw-r--r--src/gui/menuwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp
index 871a50d3..503f7ba8 100644
--- a/src/gui/menuwindow.cpp
+++ b/src/gui/menuwindow.cpp
@@ -28,10 +28,8 @@
#include <guichan/actionlistener.hpp>
#include "button.h"
+#include "windowcontainer.h"
-#include "../graphics.h"
-
-extern Graphics *graphics;
extern Window *setupWindow, *inventoryWindow, *equipmentWindow,
*skillDialog, *statusWindow;
@@ -68,7 +66,7 @@ MenuWindow::MenuWindow():
h = btn->getHeight();
}
- setDefaultSize((graphics->getWidth() - x - 2), 0, x, (y + h));
+ setDefaultSize((windowContainer->getWidth() - x - 2), 0, x, (y + h));
}
void MenuWindow::draw(gcn::Graphics *g)