Skip to content

Commit

Permalink
Fixed repeated window size bump in GameSettings/RenderSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Aug 3, 2024
1 parent 3e29fda commit 25acfb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/main/gui/panels/GUI_GameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,11 @@ void GameSettings::DrawRenderSystemSettings()
ogre_root->saveConfig();

// Show the "Must restart game..." box, make the window bigger to accomodate it
m_render_must_restart = true;
m_bump_height = ImGui::GetTextLineHeightWithSpacing() + ImGui::GetStyle().FramePadding.y * 2;
if (!m_render_must_restart)
{
m_render_must_restart = true;
m_bump_height = ImGui::GetTextLineHeightWithSpacing() + ImGui::GetStyle().FramePadding.y * 2;
}
}
}
}
Expand Down

0 comments on commit 25acfb9

Please sign in to comment.