File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ bool ImGui_ImplOSX_Init(NSView* view)
435
435
bd->Window = view.window ?: NSApp .orderedWindows .firstObject ;
436
436
ImGuiViewport* main_viewport = ImGui::GetMainViewport ();
437
437
main_viewport->PlatformHandle = main_viewport->PlatformHandleRaw = (__bridge_retained void *)bd->Window ;
438
+ ImGui_ImplOSX_UpdateMonitors ();
438
439
if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
439
440
ImGui_ImplOSX_InitPlatformInterface ();
440
441
@@ -1088,7 +1089,6 @@ static void ImGui_ImplOSX_UpdateMonitors()
1088
1089
static void ImGui_ImplOSX_InitPlatformInterface ()
1089
1090
{
1090
1091
ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData ();
1091
- ImGui_ImplOSX_UpdateMonitors ();
1092
1092
1093
1093
// Register platform interface (will be coupled with a renderer interface)
1094
1094
ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO ();
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ Docking+Viewports Branch:
73
73
- Added ImGuiDockNodeFlags_DockedWindowsInFocusRoute to automatically make a dockspace connect
74
74
the focus route of its docked window. This is provided a convenience in case you have windows
75
75
where a connection is not explicit. (#6798)
76
+ - Backends: OSX: Fixed not submitting Monitors info when viewports are not enabled, leading to
77
+ missing e.g. DpiScale info. (#7257) [@actboy168]
76
78
77
79
78
80
-----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments