fix: macOS build errors

This commit is contained in:
WerWolv
2025-05-24 22:32:24 +02:00
parent de16375903
commit c6c70daa5e

View File

@@ -402,6 +402,8 @@ namespace hex::plugin::builtin {
ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 0.0F);
ImGui::SetNextWindowScroll(ImVec2(0, 0));
auto window = ImHexApi::System::getMainWindowHandle();
#if defined(OS_MACOS)
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(ImGui::GetStyle().FramePadding.x, 8_scaled));
ON_SCOPE_EXIT { ImGui::PopStyleVar(); };
@@ -443,7 +445,6 @@ namespace hex::plugin::builtin {
ImGui::PopStyleVar(2);
}
auto window = ImHexApi::System::getMainWindowHandle();
menu::enableNativeMenuBar(s_useNativeMenuBar);
if (menu::beginMainMenuBar()) {
if (ImHexApi::System::isBorderlessWindowModeEnabled()) {