diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-18 16:59:18 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-18 16:59:18 +0000 |
commit | d5e9f527c4113dfa196448d5f8ca9e63774ab691 (patch) | |
tree | eb501806f2258e0132b1cc3a6af91069b014a70f /src/gui/chat.cpp | |
parent | 2e749068a812e75abb86abd7840723ef0ad4f813 (diff) | |
download | mana-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/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 7e0e4849..64b56caf 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -31,17 +31,15 @@ #include "browserbox.h" #include "chatinput.h" #include "scrollarea.h" +#include "windowcontainer.h" #include "../game.h" -#include "../graphics.h" #include "../localplayer.h" #include "../log.h" #include "../net/messageout.h" #include "../net/protocol.h" -extern Graphics *graphics; - ChatWindow::ChatWindow(const std::string &logfile, Network *network): Window(""), mNetwork(network), @@ -53,7 +51,7 @@ ChatWindow::ChatWindow(const std::string &logfile, Network *network): mItemsKeep = 20; setResizable(true); - setDefaultSize(0, (graphics->getHeight() - 123), 600, 100); + setDefaultSize(0, (windowContainer->getHeight() - 123), 600, 100); loadWindowState(); mChatInput = new ChatInput(); |