Browse Source

Minor construction fix (-1.0 is correct "disabled" value for TextWrapPos, didn't have any incidence anyway)

ocornut 10 năm trước cách đây
mục cha
commit
975ef00682
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -1179,7 +1179,7 @@ struct ImGuiDrawContext
         ItemWidth = 0.0f;
         ItemWidth = 0.0f;
         ButtonRepeat = false;
         ButtonRepeat = false;
         AllowKeyboardFocus = true;
         AllowKeyboardFocus = true;
-        TextWrapPos = 1.0f;
+        TextWrapPos = -1.0f;
         ColorEditMode = ImGuiColorEditMode_RGB;
         ColorEditMode = ImGuiColorEditMode_RGB;
         memset(StackSizesBackup, 0, sizeof(StackSizesBackup));
         memset(StackSizesBackup, 0, sizeof(StackSizesBackup));