diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-18 16:59:18 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-18 16:59:18 +0000 |
commit | d5e9f527c4113dfa196448d5f8ca9e63774ab691 (patch) | |
tree | eb501806f2258e0132b1cc3a6af91069b014a70f /src/gui/menuwindow.cpp | |
parent | 2e749068a812e75abb86abd7840723ef0ad4f813 (diff) | |
download | mana-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.cpp | 6 |
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) |