summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index 09c88978..8076d93b 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -34,12 +34,17 @@
#include "../net/messageout.h"
#include "../net/protocol.h"
+#include "graphics.h"
+extern Graphics *graphics;
+
StatusWindow::StatusWindow():
Window(player_info->name)
{
setWindowName("Status");
setResizable(true);
- setContentSize(365, 255);
+ setDefaultSize((graphics->getWidth() - 365) / 2,
+ (graphics->getHeight() - 255) / 2, 365, 255);
+ loadWindowState();
// ----------------------
// Status Part