summaryrefslogtreecommitdiff
path: root/src/gui/menuwindow.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/menuwindow.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/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)