From 9583215d009c3362b0714dd9964e276f20aa7bed Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 20 Jan 2023 15:47:37 -0500 Subject: [PATCH] Revert "remove minimize debug" This reverts commit 73b7893c04b8683deafd4e18b48844679a370a74. --- src/gui/gui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 6c62e9611..a619cf325 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3419,6 +3419,13 @@ bool FurnaceGUI::loop() { ImGui_ImplSDL2_NewFrame(sdlWin); ImGui::NewFrame(); + ImGuiViewport* vp=ImGui::GetMainViewport(); + if (vp==NULL) { + logE("NULL MAN"); + } else { + logV("viewport size: %dx%d",vp->Size.x,vp->Size.y); + } + curWindowLast=curWindow; curWindow=GUI_WINDOW_NOTHING; editOptsVisible=false;