summaryrefslogtreecommitdiff
path: root/src/gui/status.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/status.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/status.cpp')
-rw-r--r--src/gui/status.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index d7cae2f0..7d6cabac 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -27,23 +27,20 @@
#include "button.h"
#include "progressbar.h"
+#include "windowcontainer.h"
#include "../localplayer.h"
-#include "../graphics.h"
-
#include "../utils/tostring.h"
-extern Graphics *graphics;
-
StatusWindow::StatusWindow(LocalPlayer *player):
Window(player->getName()),
mPlayer(player)
{
setWindowName("Status");
setResizable(true);
- setDefaultSize((graphics->getWidth() - 365) / 2,
- (graphics->getHeight() - 255) / 2, 365, 255);
+ setDefaultSize((windowContainer->getWidth() - 365) / 2,
+ (windowContainer->getHeight() - 255) / 2, 365, 255);
loadWindowState();
// ----------------------