mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-23 16:16:36 +00: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;
|
ImGuiContext& g = *GImGui;
|
||||||
ImVec2 backup_display_pos = g.IO.DisplayPos;
|
ImVec2 backup_display_pos = g.IO.DisplayPos;
|
||||||
ImVec2 backup_display_size = g.IO.DisplaySize;
|
ImVec2 backup_display_size = g.IO.DisplaySize;
|
||||||
|
if (!(g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports))
|
||||||
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < g.Viewports.Size; i++)
|
for (int i = 0; i < g.Viewports.Size; i++)
|
||||||
{
|
{
|
||||||
ImGuiViewport* viewport = g.Viewports[i];
|
ImGuiViewport* viewport = g.Viewports[i];
|
||||||
@ -4452,13 +4454,6 @@ void ImGui::Render()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGui::RenderAdditionalViewports()
|
|
||||||
{
|
|
||||||
ImGuiContext& g = *GImGui;
|
|
||||||
if (g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports)
|
|
||||||
RenderPlatformWindows();
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGuiViewport* ImGui::FindViewportByID(ImGuiID id)
|
ImGuiViewport* ImGui::FindViewportByID(ImGuiID id)
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
|
Loading…
Reference in New Issue
Block a user