summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 19:24:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commit83cd167e199a60930aa1ea551304a9a8e624806c (patch)
tree90eaaf9de9ecc39273124ffdc0037a0c99d904eb
parent270d6d2753473955a2b691a934eb2e550d13ebc3 (diff)
downloadplus-83cd167e199a60930aa1ea551304a9a8e624806c.tar.gz
plus-83cd167e199a60930aa1ea551304a9a8e624806c.tar.bz2
plus-83cd167e199a60930aa1ea551304a9a8e624806c.tar.xz
plus-83cd167e199a60930aa1ea551304a9a8e624806c.zip
Fix fps counter in SDL2.
-rw-r--r--src/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 9fa220b8c..2d1a2d82b 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1065,6 +1065,8 @@ int Client::gameExec()
lastTickTime = tick_time;
#ifdef USE_SDL2
+ // +++ need check active state
+ frame_count++;
if (gui)
gui->draw();
mainGraphics->updateScreen();