mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-05 06:57:13 +08:00
Viewport: Removed unnecessary function hoop.
This commit is contained in:
parent
8657201257
commit
6371474031
13
imgui.cpp
13
imgui.cpp
@ -3514,12 +3514,14 @@ static void UpdatePlatformWindows()
|
||||
}
|
||||
}
|
||||
|
||||
static void RenderPlatformWindows()
|
||||
void ImGui::RenderAdditionalViewports()
|
||||
{
|
||||
// Render
|
||||
ImGuiContext& g = *GImGui;
|
||||
ImVec2 backup_display_pos = g.IO.DisplayPos;
|
||||
ImVec2 backup_display_size = g.IO.DisplaySize;
|
||||
if (!(g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports))
|
||||
return;
|
||||
|
||||
for (int i = 0; i < g.Viewports.Size; i++)
|
||||
{
|
||||
ImGuiViewport* viewport = g.Viewports[i];
|
||||
@ -4452,13 +4454,6 @@ void ImGui::Render()
|
||||
#endif
|
||||
}
|
||||
|
||||
void ImGui::RenderAdditionalViewports()
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
if (g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports)
|
||||
RenderPlatformWindows();
|
||||
}
|
||||
|
||||
ImGuiViewport* ImGui::FindViewportByID(ImGuiID id)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
|
Loading…
Reference in New Issue
Block a user