From 7560b9c10e2cee15063c8abe6f908c942d462018 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 4 Jun 2023 23:55:57 -0500 Subject: [PATCH] GUI: more debug info --- src/gui/gui.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index e6a94beb..c19ee1c4 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -6158,6 +6158,7 @@ bool FurnaceGUI::init() { rend->preInit(); + logD("creating window..."); sdlWin=SDL_CreateWindow("Furnace",scrX,scrY,scrW,scrH,SDL_WINDOW_RESIZABLE|SDL_WINDOW_ALLOW_HIGHDPI|(scrMax?SDL_WINDOW_MAXIMIZED:0)|(fullScreen?SDL_WINDOW_FULLSCREEN_DESKTOP:0)|rend->getWindowFlags()); if (sdlWin==NULL) { lastError=fmt::sprintf("could not open window! %s",SDL_GetError()); @@ -6222,6 +6223,7 @@ bool FurnaceGUI::init() { SDL_SetHint(SDL_HINT_RENDER_DRIVER,settings.renderDriver.c_str()); } + logD("starting render backend..."); if (!rend->init(sdlWin)) { if (settings.renderBackend=="OpenGL") { settings.renderBackend=""; @@ -6259,10 +6261,17 @@ bool FurnaceGUI::init() { } } + updateWindowTitle(); + + rend->clear(ImVec4(0.0,0.0,0.0,1.0)); + rend->present(); + + logD("preparing user interface..."); rend->initGUI(sdlWin); applyUISettings(); + logD("building font..."); if (!ImGui::GetIO().Fonts->Build()) { logE("error while building font atlas!"); showError("error while loading fonts! please check your settings."); @@ -6275,6 +6284,7 @@ bool FurnaceGUI::init() { } } + logD("preparing layout..."); strncpy(finalLayoutPath,(e->getConfigPath()+String(LAYOUT_INI)).c_str(),4095); backupPath=e->getConfigPath(); if (backupPath.size()>0) { @@ -6286,8 +6296,6 @@ bool FurnaceGUI::init() { ImGui::GetIO().ConfigFlags|=ImGuiConfigFlags_DockingEnable; toggleMobileUI(mobileUI,true); - updateWindowTitle(); - for (int i=0; i