diff options
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 12 |
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(); } |