Skip to content

Commit

Permalink
Turn on ImGui ConfigDebugHighlightIdConflicts and ConfigErrorRecovery…
Browse files Browse the repository at this point in the history
…EnableTooltip etc
  • Loading branch information
aardappel committed Oct 9, 2024
1 parent 85a13b3 commit 1fc6822
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev/src/imbind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ bool IMGUIInit(iint flags, bool dark, float rounding, float border) {
if (!_sdl_window || !_sdl_context) return false;
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGui::GetIO().ConfigFlags |= (ImGuiConfigFlags)flags;
auto &io = ImGui::GetIO();
io.ConfigFlags |= (ImGuiConfigFlags)flags;
io.ConfigDebugHighlightIdConflicts = true;
io.ConfigErrorRecovery = true;
io.ConfigErrorRecoveryEnableAssert = false;
io.ConfigErrorRecoveryEnableTooltip = true;
io.ConfigErrorRecoveryEnableDebugLog = true;
if (dark)
ImGui::StyleColorsDark();
else
Expand Down

0 comments on commit 1fc6822

Please sign in to comment.