Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix graphics flickering/stretching on Windows #367

Merged
merged 12 commits into from
Jun 27, 2024
8 changes: 7 additions & 1 deletion src/tools/winutil.win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,5 +444,11 @@ ModalSession::~ModalSession() {
}

int getMenubarHeight() {
return GetSystemMetrics(SM_CYMENU);
MENUBARINFO info;
info.cbSize = sizeof(MENUBARINFO);
if (GetMenuBarInfo(mainPtr.getSystemHandle(), OBJID_MENU, 0, &info))
NQNStudios marked this conversation as resolved.
Show resolved Hide resolved
return info.rcBar.bottom - info.rcBar.top;
else {
return GetSystemMetrics(SM_CYMENU);
}
}