mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-05 16:00:15 +02:00
Forgot to also take into account changing UI scale.
This commit is contained in:
parent
f46f1f5365
commit
b3b63d95ee
1 changed files with 3 additions and 2 deletions
|
@ -342,10 +342,11 @@ void winmain::RenderUi()
|
||||||
|
|
||||||
if (ImGui::BeginMainMenuBar())
|
if (ImGui::BeginMainMenuBar())
|
||||||
{
|
{
|
||||||
if (MainMenuHeight == 0)
|
int currentMenuHeight = static_cast<int>(ImGui::GetWindowSize().y);
|
||||||
|
if (MainMenuHeight != currentMenuHeight)
|
||||||
{
|
{
|
||||||
// Get the height of the main menu bar and update screen coordinates
|
// Get the height of the main menu bar and update screen coordinates
|
||||||
MainMenuHeight = static_cast<int>(ImGui::GetWindowSize().y);
|
MainMenuHeight = currentMenuHeight;
|
||||||
fullscrn::window_size_changed();
|
fullscrn::window_size_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue