1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 10:11:00 +01:00

TextUnformatted(): simplifying

This commit is contained in:
ocornut 2015-08-30 17:45:05 +01:00
parent afa0346a0b
commit 73e73e6ef9

View File

@ -4956,7 +4956,7 @@ void ImGui::TextUnformatted(const char* text, const char* text_end)
text_pos.y += window->DC.CurrentLineTextBaseOffset;
ImRect bb(text_pos, text_pos + text_size);
ItemSize(bb.GetSize());
ItemSize(text_size);
if (!ItemAdd(bb, NULL))
return;