mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-17 00:38:23 +00:00
Viewports: added void* ImGuiPlatformMonitor::PlatformHandle field (backend-dependant).
This commit is contained in:
@@ -718,6 +718,7 @@ static void ImGui_ImplSDL2_UpdateMonitors()
|
||||
if (!SDL_GetDisplayDPI(n, &dpi, nullptr, nullptr))
|
||||
monitor.DpiScale = dpi / 96.0f;
|
||||
#endif
|
||||
monitor.PlatformHandle = (void*)(intptr_t)n;
|
||||
platform_io.Monitors.push_back(monitor);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user