mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
TextUnformatted(): simplifying
This commit is contained in:
parent
afa0346a0b
commit
73e73e6ef9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user