Internals: Columns: Tweaks, renaming. Metrics: Show rectangles for child windows.

Renamed SameLine() first parameter.
This commit is contained in:
omar
2019-04-17 12:26:51 +02:00
parent 1d3ebef364
commit 1aeee9d40f
5 changed files with 43 additions and 45 deletions

View File

@ -299,7 +299,8 @@ void ImGui::TextWrapped(const char* fmt, ...)
void ImGui::TextWrappedV(const char* fmt, va_list args)
{
bool need_backup = (GImGui->CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set
ImGuiWindow* window = GetCurrentWindow();
bool need_backup = (window->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set
if (need_backup)
PushTextWrapPos(0.0f);
TextV(fmt, args);