Browse Source

PopStyleVar() fix. OOPS

omar 10 năm trước cách đây
mục cha
commit
2322318cac
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2633,6 +2633,7 @@ void ImGui::PopStyleVar(int count)
         else if (ImVec2* pvar_v = GetStyleVarVec2Addr(backup.Var))
             *pvar_v = backup.PreviousValue;
         g.StyleModifiers.pop_back();
+		count--;
     }
 }