Explorar el Código

TextUnformatted(): simplifying

ocornut hace 10 años
padre
commit
73e73e6ef9
Se han modificado 1 ficheros con 1 adiciones y 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;
         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;