1
0
mirror of synced 2024-11-30 18:34:29 +01:00

fix: Title bar height on non-macOS platforms

This commit is contained in:
WerWolv 2024-06-08 00:56:52 +02:00
parent 53ced98529
commit 041bf47ff4

View File

@ -128,7 +128,12 @@ namespace hex::plugin::builtin {
}
void drawTitleBar() {
auto titleBarHeight = ImGui::GetCurrentWindowRead()->MenuBarHeight * 0.7;
auto titleBarHeight = ImGui::GetCurrentWindowRead()->MenuBarHeight;
#if defined (OS_MACOS)
titleBarHeight *= 0.7F;
#endif
auto buttonSize = ImVec2(titleBarHeight * 1.5F, titleBarHeight - 1);
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));