From aac98cf8bcde36ba50ab45254866afc365a7908a Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 29 Sep 2005 19:46:12 +0000 Subject: Improved a lot windows reset to default size and pos. Also corrected a few the default win position. And moved the setposition from game to each win, to clarify the code. --- src/gui/status.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/status.cpp') 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 -- cgit v1.2.3-70-g09d2