#Messed up ImGui rendering

13 messages · Page 1 of 1 (latest)

cursive compass
#

When building the program in Visual Studio, the GUI is perfectly fine and looks as it should, but while the program is started using .exe file the GUI is completly messed up
Screenshots of Built and .exe versions of GUI attached as images
AI Extracted ImGui code inside text file

hardy badgeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

twilit swallow
#

I bet the font didn't load

cursive compass
twilit swallow
#

Ah nvm

#

Maybe imgui has saved your window positions in imgui.ini?

#

Which is in a different directory when you run manually

#

You resized then manually once, and it preserved the sizes & positions

cursive compass
#

oh, yeah, youre right, but why is imgui.ini generated with such parameters? (I deleted all imgui.ini in the project directory and this is what is in the one that was created just right now, after running the .exe)

twilit swallow
#

It probably guessed the window sizes from the contents?

#

It's not always perfect

cursive compass
#

Now its working good, thanks for help
(Added ImGuiWindowFlags_NoSavedSettings flags for both windows and hard coded size and position of each window)

#

!solved