diff options
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(); |