summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-07 22:32:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-07 22:32:20 +0300
commit4776e0efe9859d623939ffd48b95d9ca5fb8969a (patch)
tree1c5856b537afad1439e9e7fae705e1313049550b /src
parent327312c8f5a4fb89b0d38ae179c76e9885bfb698 (diff)
downloadmanaverse-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.gz
manaverse-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.bz2
manaverse-4776e0efe9859d623939ffd48b95d9ca5fb8969a.tar.xz
manaverse-4776e0efe9859d623939ffd48b95d9ca5fb8969a.zip
fix compilation error with SDL2.
Diffstat (limited to 'src')
-rw-r--r--src/eventsmanager.cpp5
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