viewport->LastPlatformPos=viewport->LastPlatformSize=ImVec2(FLT_MAX,FLT_MAX);// By clearing those we'll enforce a call to Platform_SetWindowPos/Platform_SetWindowSize before Platform_ShowWindow
viewport->LastPlatformPos=viewport->LastPlatformSize=ImVec2(FLT_MAX,FLT_MAX);// By clearing those we'll enforce a call to Platform_SetWindowPos/Platform_SetWindowSize before Platform_ShowWindow
viewport->LastRendererSize=viewport->Size;
viewport->LastRendererSize=viewport->Size;
viewport->CreatedPlatformWindow =true;
viewport->PlatformWindowCreated=true;
}
}
// Apply Position and Size (from ImGui to Platform/Renderer back-ends)
// Apply Position and Size (from ImGui to Platform/Renderer back-ends)
@ -627,11 +627,11 @@ struct ImGuiViewportP : public ImGuiViewport
intLastFrontMostStampCount;// Last stamp number from when a window hosted by this viewport was made front-most (by comparing this value between two viewport we have an implicit viewport z-order
intLastFrontMostStampCount;// Last stamp number from when a window hosted by this viewport was made front-most (by comparing this value between two viewport we have an implicit viewport z-order
ImGuiIDLastNameHash;
ImGuiIDLastNameHash;
ImVec2LastPos;
ImVec2LastPos;
boolCreatedPlatformWindow;
floatAlpha;// Window opacity (when dragging dockable windows/viewports we make them transparent)
floatAlpha;// Window opacity (when dragging dockable windows/viewports we make them transparent)
floatLastAlpha;
floatLastAlpha;
intPlatformMonitor;
intPlatformMonitor;
boolPlatformIsMinimized;
boolPlatformWindowCreated;
boolPlatformWindowMinimized;
ImGuiWindow*Window;
ImGuiWindow*Window;
ImDrawList*OverlayDrawList;// For convenience, a draw list we can render to that's always rendered last (we use it to draw software mouse cursor when io.MouseDrawCursor is set)
ImDrawList*OverlayDrawList;// For convenience, a draw list we can render to that's always rendered last (we use it to draw software mouse cursor when io.MouseDrawCursor is set)
ImDrawDataDrawDataP;
ImDrawDataDrawDataP;
@ -640,7 +640,7 @@ struct ImGuiViewportP : public ImGuiViewport