mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-17 21:12:58 +00:00
Viewports: added opaque void* PlatformIconData storage in viewport and ImGuiWindowClass to allow passing icon information to a custom backend or hook. (#2715)
This commit is contained in:
@@ -17377,6 +17377,8 @@ void ImGui::WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_win
|
||||
|
||||
window->Viewport->Flags = viewport_flags;
|
||||
|
||||
window->Viewport->PlatformIconData = window->WindowClass.PlatformIconData;
|
||||
|
||||
// Update parent viewport ID
|
||||
// (the !IsFallbackWindow test mimic the one done in WindowSelectViewport())
|
||||
if (window->WindowClass.ParentViewportId != (ImGuiID)-1)
|
||||
|
||||
Reference in New Issue
Block a user