Skip to content

Commit

Permalink
Update after review
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Jan 4, 2024
1 parent 835a381 commit dcfd97e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4167,7 +4167,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
/*
==================== Drawing begins ====================
*/
if (!device->isAppPaused())
if (device->isWindowVisible())
drawScene(graph, stats);
/*
==================== End scene ====================
Expand Down
2 changes: 1 addition & 1 deletion src/gui/guiEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void GUIEngine::run()
f32 dtime = 0.0f;

while (m_rendering_engine->run() && (!m_startgame) && (!m_kill)) {
if (!device->isAppPaused()) {
if (device->isWindowVisible()) {
// check if we need to update the "upper left corner"-text
if (text_height != g_fontengine->getTextHeight()) {
updateTopLeftTextSize();
Expand Down

0 comments on commit dcfd97e

Please sign in to comment.