diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-07 22:32:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-07 22:32:20 +0300 |
commit | 4776e0efe9859d623939ffd48b95d9ca5fb8969a (patch) | |
tree | 1c5856b537afad1439e9e7fae705e1313049550b | |
parent | 327312c8f5a4fb89b0d38ae179c76e9885bfb698 (diff) | |
download | manaplus-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.gz manaplus-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.bz2 manaplus-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.xz manaplus-4776e0efe9859d623939ffd48b95d9ca5fb8969a.zip |
fix compilation error with SDL2.
-rw-r--r-- | src/eventsmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp index 09234ec3f..0a626e5e5 100644 --- a/src/eventsmanager.cpp +++ b/src/eventsmanager.cpp @@ -23,6 +23,9 @@ #include "configuration.h" #include "client.h" #include "game.h" +#ifdef USE_SDL2 +#include "render/graphics.h" +#endif #include "logger.h" #include "mumblemanager.h" @@ -441,7 +444,7 @@ void EventsManager::handleSDL2WindowEvent(const SDL_Event &event) player_node->updateStatus(); player_node->updateName(); } - updateFrameRate(fpsLimit); + Game::instance()->updateFrameRate(fpsLimit); } } #else |