diff options
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r-- | src/gui/status.cpp | 9 |
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(); // ---------------------- |