mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: macOS build errors
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user