summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-29 19:46:12 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-29 19:46:12 +0000
commitaac98cf8bcde36ba50ab45254866afc365a7908a (patch)
tree4e2ef7600f2ebd101484a305d3df6ca5135b39ef /src/gui/chat.cpp
parentc00d3acf930359740ae6125533b5233ae06b765e (diff)
downloadmana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.gz
mana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.bz2
mana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.xz
mana-aac98cf8bcde36ba50ab45254866afc365a7908a.zip
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.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index e6868622..e30e7116 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -35,6 +35,9 @@
#include "../playerinfo.h"
#include "../log.h"
+#include "graphics.h"
+extern Graphics *graphics;
+
#include "../net/messageout.h"
#include "../net/protocol.h"
@@ -46,8 +49,9 @@ ChatWindow::ChatWindow(const std::string &logfile):
items = 0;
items_keep = 20;
- setContentSize(600, 100);
setResizable(true);
+ setDefaultSize(0, (graphics->getHeight() - 123), 600, 100);
+ loadWindowState();
chatInput = new ChatInput();
chatInput->setEventId("chatinput");