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:
parent
f58148cd94
commit
32c15a8266
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user