mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Extract fps counter drawing
This commit is contained in:
parent
f58148cd94
commit
32c15a8266
@ -1617,9 +1617,6 @@ void CPlayerInterface::update()
|
|||||||
GH.totalRedraw();
|
GH.totalRedraw();
|
||||||
else
|
else
|
||||||
GH.simpleRedraw();
|
GH.simpleRedraw();
|
||||||
|
|
||||||
if (settings["general"]["showfps"].Bool())
|
|
||||||
GH.drawFPSCounter();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int CPlayerInterface::getLastIndex( std::string namePrefix)
|
int CPlayerInterface::getLastIndex( std::string namePrefix)
|
||||||
|
@ -537,9 +537,6 @@ void CGPreGame::update()
|
|||||||
// /FIXME: find out why GH.listInt is empty to begin with
|
// /FIXME: find out why GH.listInt is empty to begin with
|
||||||
if (GH.topInt() != nullptr)
|
if (GH.topInt() != nullptr)
|
||||||
GH.topInt()->show(screen);
|
GH.topInt()->show(screen);
|
||||||
|
|
||||||
if (settings["general"]["showfps"].Bool())
|
|
||||||
GH.drawFPSCounter();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGPreGame::openCampaignScreen(std::string name)
|
void CGPreGame::openCampaignScreen(std::string name)
|
||||||
|
@ -415,6 +415,9 @@ void CGuiHandler::renderFrame()
|
|||||||
if(nullptr != curInt)
|
if(nullptr != curInt)
|
||||||
curInt->update();
|
curInt->update();
|
||||||
|
|
||||||
|
if (settings["general"]["showfps"].Bool())
|
||||||
|
drawFPSCounter();
|
||||||
|
|
||||||
// draw the mouse cursor and update the screen
|
// draw the mouse cursor and update the screen
|
||||||
CCS->curh->render();
|
CCS->curh->render();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user