mirror of
https://github.com/Drezil/imgui.git
synced 2025-11-04 23:21:05 +01:00
TextUnformatted(): simplifying
This commit is contained in:
@@ -4956,7 +4956,7 @@ void ImGui::TextUnformatted(const char* text, const char* text_end)
|
|||||||
text_pos.y += window->DC.CurrentLineTextBaseOffset;
|
text_pos.y += window->DC.CurrentLineTextBaseOffset;
|
||||||
|
|
||||||
ImRect bb(text_pos, text_pos + text_size);
|
ImRect bb(text_pos, text_pos + text_size);
|
||||||
ItemSize(bb.GetSize());
|
ItemSize(text_size);
|
||||||
if (!ItemAdd(bb, NULL))
|
if (!ItemAdd(bb, NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user