summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 21:49:42 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commite8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (patch)
tree889a347ac3fb3998566fe07d2c170ad5748aa1f3 /src/game.cpp
parent1a59946dd91a9de55f114413a520bf36204222ff (diff)
downloadplus-e8a4474319aca4a32869fa1ebb8b5ebbd98237f6.tar.gz
plus-e8a4474319aca4a32869fa1ebb8b5ebbd98237f6.tar.bz2
plus-e8a4474319aca4a32869fa1ebb8b5ebbd98237f6.tar.xz
plus-e8a4474319aca4a32869fa1ebb8b5ebbd98237f6.zip
save Client object into global variable.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f4dc97ed6..80408f836 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -972,16 +972,7 @@ void Game::handleInput()
#ifdef USE_SDL2
case SDL_WINDOWEVENT:
{
- switch (event.window.event)
- {
- // +++ need add other window events
- case SDL_WINDOWEVENT_RESIZED:
- Client::resize(event.window.data1,
- event.window.data2, false);
- break;
- default:
- break;
- }
+ client->handleSDL2WindowEvent(event);
break;
}
#else