mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Title bar height on non-macOS platforms
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user