summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index b00f602f..7b29ea66 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -163,8 +163,6 @@ GraphicEngine::GraphicEngine() {
guiTop->add(chatInput);
- chatInput->requestFocus();
-
// Create dialogs
statusWindow = new StatusWindow(guiTop);
@@ -192,6 +190,10 @@ GraphicEngine::GraphicEngine() {
skill_player = init_dialog(skill_dialog, -1);
skill_list_player = init_dialog(skill_list_dialog, -1);
+ // Give focus to the chat input
+ chatInput->requestFocus();
+
+ // SDL probably doesn't need this buffer, it'll buffer for us.
buffer = create_bitmap(SCREEN_W, SCREEN_H);
if (!buffer) {
error("Not enough memory to create buffer");