summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
commit8e1c3b592c9ebcec9e006bcc54eea55bfea4a864 (patch)
tree134de69274dad771a4cd9297a0a0617ed28a0543 /src/gui/chat.cpp
parent0ce6e9e8400c326e6848688b3b865c84d96e3073 (diff)
downloadmana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.gz
mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.bz2
mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.xz
mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.zip
Removed guiGraphics global pointer and removed dependencies on gui.h in some places.
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();
}
}