Unified IMGUI_SAME_LINE width

This commit is contained in:
Bruno Herbelin
2021-12-31 13:13:29 +01:00
parent 0e9984827a
commit 7b26b0f23e
4 changed files with 50 additions and 55 deletions

View File

@@ -261,7 +261,7 @@ void Log::Render(bool *showWarnings)
if (ImGui::BeginPopupModal("Warning", NULL, ImGuiWindowFlags_AlwaysAutoResize))
{
ImGuiToolkit::Icon(9, 4);
ImGui::SameLine(0, 10);
ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGui::SetNextItemWidth(width);
ImGui::TextColored(ImVec4(1.0f,0.6f,0.0f,1.0f), "%ld error(s) occured.\n\n", warnings.size());
ImGui::Dummy(ImVec2(width, 0));