1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-04 07:20:15 +02:00

Forgot to also take into account changing UI scale.

This commit is contained in:
MaikelChan 2021-10-24 15:40:21 +02:00
parent f46f1f5365
commit b3b63d95ee
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B2CE398C279239EC

View file

@ -342,10 +342,11 @@ void winmain::RenderUi()
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
MainMenuHeight = static_cast<int>(ImGui::GetWindowSize().y);
MainMenuHeight = currentMenuHeight;
fullscrn::window_size_changed();
}