|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
// dear imgui, v1.66b
|
|
|
|
|
// dear imgui, v1.67 WIP
|
|
|
|
|
// (main code and documentation)
|
|
|
|
|
|
|
|
|
|
// Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code.
|
|
|
|
@ -3432,8 +3432,9 @@ void ImGui::NewFrame()
|
|
|
|
|
g.CurrentPopupStack.resize(0);
|
|
|
|
|
ClosePopupsOverWindow(g.NavWindow);
|
|
|
|
|
|
|
|
|
|
// Create implicit window - we will only render it if the user has added something to it.
|
|
|
|
|
// Create implicit/fallback window - which we will only render it if the user has added something to it.
|
|
|
|
|
// We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags.
|
|
|
|
|
// This fallback is particularly important as it avoid ImGui:: calls from crashing.
|
|
|
|
|
SetNextWindowSize(ImVec2(400,400), ImGuiCond_FirstUseEver);
|
|
|
|
|
Begin("Debug##Default");
|
|
|
|
|
|
|
|
|
@ -4673,7 +4674,7 @@ static void ImGui::UpdateManualResize(ImGuiWindow* window, const ImVec2& size_au
|
|
|
|
|
ImGuiWindowFlags flags = window->Flags;
|
|
|
|
|
if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0)
|
|
|
|
|
return;
|
|
|
|
|
if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit Debug window.
|
|
|
|
|
if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit/fallback Debug window.
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
const int resize_border_count = g.IO.ConfigResizeWindowsFromEdges ? 4 : 0;
|
|
|
|
@ -5114,7 +5115,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
|
|
|
|
|
ClampWindowRect(window, viewport_rect, clamp_padding);
|
|
|
|
|
else if (window->ViewportOwned && g.PlatformIO.Monitors.Size > 0)
|
|
|
|
|
{
|
|
|
|
|
IM_ASSERT(window->Viewport->PlatformMonitor != INT_MIN);
|
|
|
|
|
if (window->Viewport->PlatformMonitor == -1)
|
|
|
|
|
{
|
|
|
|
|
// Fallback for "lost" window (e.g. a monitor disconnected): we move the window back over the main viewport
|
|
|
|
|