From 83cd167e199a60930aa1ea551304a9a8e624806c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 19:24:57 +0300 Subject: Fix fps counter in SDL2. --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client.cpp') 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(); -- cgit v1.2.3-70-g09d2