Explorar o código

TextUnformatted(): simplifying

ocornut %!s(int64=10) %!d(string=hai) anos
pai
achega
73e73e6ef9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -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;