summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 15:13:54 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 15:13:54 +0000
commit4f6c1dad35e575588b73524692d973dec06447c3 (patch)
treed052c3c7db66450888af132ac9dcefb7c28b58a6 /src/gui/char_server.cpp
parentebccde5d779f25584386ddc0c4bdc6331877bcc6 (diff)
downloadmana-client-4f6c1dad35e575588b73524692d973dec06447c3.tar.gz
mana-client-4f6c1dad35e575588b73524692d973dec06447c3.tar.bz2
mana-client-4f6c1dad35e575588b73524692d973dec06447c3.tar.xz
mana-client-4f6c1dad35e575588b73524692d973dec06447c3.zip
Support for drawing using OpenGL. Don't expect it to be fast yet though.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index a0988b5a..6cc45f3d 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -126,14 +126,24 @@ void char_server() {
case SDL_QUIT:
state = EXIT;
break;
+
+ case SDL_KEYDOWN:
+ if (event.key.keysym.sym == SDLK_ESCAPE)
+ {
+ showServerList = false;
+ }
+ break;
}
guiInput->pushInput(event);
}
- login_wallpaper->draw(screen, 0, 0);
gui->logic();
+
+ guiGraphics->_beginDraw();
+ login_wallpaper->draw(screen, 0, 0);
gui->draw();
+ guiGraphics->_endDraw();
guiGraphics->updateScreen();
}