瀏覽代碼

ShowTestWindow() minor tweak

ocornut 10 年之前
父節點
當前提交
1f272785f1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      imgui.cpp

+ 2 - 2
imgui.cpp

@@ -8805,8 +8805,8 @@ void ImGui::ShowTestWindow(bool* opened)
 
         ImGui::PushItemWidth(80);
         ImGui::Text("Lists:");
-        static int selection[5] = { -1, 0, 1, 2, 3 };
-        for (int i = 0; i < 5; i++)
+        static int selection[4] = { 0, 1, 2, 3 };
+        for (int i = 0; i < 4; i++)
         {
             if (i > 0) ImGui::SameLine();
             ImGui::PushID(i);