1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

Extract fps counter drawing

This commit is contained in:
AlexVinS 2015-06-22 23:57:34 +03:00
parent f58148cd94
commit 32c15a8266
3 changed files with 3 additions and 6 deletions

@ -1617,9 +1617,6 @@ void CPlayerInterface::update()
GH.totalRedraw();
else
GH.simpleRedraw();
if (settings["general"]["showfps"].Bool())
GH.drawFPSCounter();
}
int CPlayerInterface::getLastIndex( std::string namePrefix)

@ -537,9 +537,6 @@ void CGPreGame::update()
// /FIXME: find out why GH.listInt is empty to begin with
if (GH.topInt() != nullptr)
GH.topInt()->show(screen);
if (settings["general"]["showfps"].Bool())
GH.drawFPSCounter();
}
void CGPreGame::openCampaignScreen(std::string name)

@ -414,6 +414,9 @@ void CGuiHandler::renderFrame()
if(nullptr != curInt)
curInt->update();
if (settings["general"]["showfps"].Bool())
drawFPSCounter();
// draw the mouse cursor and update the screen
CCS->curh->render();