summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 16a1b662..ca24ac47 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -23,9 +23,10 @@
#include "chat.h"
+#include <guichan/focushandler.hpp>
+
#include "browserbox.h"
#include "chatinput.h"
-#include "gui.h"
#include "scrollarea.h"
#include "../playerinfo.h"
@@ -143,7 +144,6 @@ void ChatWindow::chat_log(std::string line, int own)
line = lineColor + tmp.nick + line;
textOutput->addRow(line);
- textOutput->draw(gui->getGraphics());
scrollArea->setVerticalScrollAmount(scrollArea->getVerticalMaxScroll());
}
@@ -175,7 +175,7 @@ void ChatWindow::action(const std::string& eventId)
}
// Remove focus and hide input
- gui->focusNone();
+ mFocusHandler->focusNone();
}
}