@@ -113,11 +113,11 @@ void AnimationWindow::createDelayAnimationGui(IAnimation &anim)
113113void AnimationWindow::createLoopAnimationGui (LoopComponent &loop)
114114{
115115 int currentLoopDirection = static_cast <int >(loop.direction ());
116- ImGui::Combo (" Direction" , ¤tLoopDirection, loopDirections, IM_ARRAYSIZE (loopDirections));
116+ ImGui::Combo (" Direction" , ¤tLoopDirection, loopDirections, IM_COUNTOF (loopDirections));
117117 loop.setDirection (static_cast <Loop::Direction>(currentLoopDirection));
118118
119119 int currentLoopMode = static_cast <int >(loop.mode ());
120- ImGui::Combo (" Loop Mode" , ¤tLoopMode, loopModes, IM_ARRAYSIZE (loopModes));
120+ ImGui::Combo (" Loop Mode" , ¤tLoopMode, loopModes, IM_COUNTOF (loopModes));
121121 loop.setMode (static_cast <Loop::Mode>(currentLoopMode));
122122
123123 if (loop.mode () != Loop::Mode::DISABLED )
@@ -197,7 +197,7 @@ void AnimationWindow::createCurveAnimationGui(CurveAnimation &anim, const CurveA
197197 createDelayAnimationGui (anim);
198198
199199 int currentComboCurveType = static_cast <int >(anim.curve ().type ());
200- ImGui::Combo (" Easing Curve" , ¤tComboCurveType, easingCurveTypes, IM_ARRAYSIZE (easingCurveTypes));
200+ ImGui::Combo (" Easing Curve" , ¤tComboCurveType, easingCurveTypes, IM_COUNTOF (easingCurveTypes));
201201 anim.curve ().setType (static_cast <EasingCurve::Type>(currentComboCurveType));
202202
203203 createLoopAnimationGui (anim.curve ().loop ());
@@ -356,7 +356,7 @@ void AnimationWindow::createPropertyAnimationGui(PropertyAnimation &anim)
356356 currentComboProperty = static_cast <Properties::Types>(anim.propertyType ());
357357
358358 bool setCurveShift = false ;
359- if (ImGui::Combo (" Property" , ¤tComboProperty, Properties::Strings, IM_ARRAYSIZE (Properties::Strings)))
359+ if (ImGui::Combo (" Property" , ¤tComboProperty, Properties::Strings, IM_COUNTOF (Properties::Strings)))
360360 setCurveShift = true ;
361361 anim.setProperty (static_cast <Properties::Types>(currentComboProperty));
362362 switch (currentComboProperty)
0 commit comments