You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3030,10 +3033,10 @@ void CMenuContainer::AnimateMenu( int flags, int speed, const RECT &rect )
3030
3033
}
3031
3034
3032
3035
// animate
3033
-
int time0=GetTickCount();
3036
+
auto time0=steady_clock::now();
3034
3037
while (true)
3035
3038
{
3036
-
int dt=GetTickCount()-time0;
3039
+
auto dt=duration_cast<milliseconds>(steady_clock::now()-time0).count();
3037
3040
if (dt>speed) break;
3038
3041
float f=dt/(float)speed;
3039
3042
int alpha=(int)(f*255);
@@ -3085,7 +3088,7 @@ void CMenuContainer::AnimateMenu( int flags, int speed, const RECT &rect )
3085
3088
}
3086
3089
3087
3090
// animate
3088
-
int time0=GetTickCount();
3091
+
auto time0=steady_clock::now();
3089
3092
int movex=0, movey=0;
3090
3093
if (flags&AW_HOR_POSITIVE)
3091
3094
{
@@ -3111,7 +3114,7 @@ void CMenuContainer::AnimateMenu( int flags, int speed, const RECT &rect )
3111
3114
HRGN clipRgn=CreateRectRgn(clipRect.left-rect.left,clipRect.top-rect.top,clipRect.right-rect.left,clipRect.bottom-rect.top); // clip region in window space
3112
3115
while (true)
3113
3116
{
3114
-
int dt=GetTickCount()-time0;
3117
+
auto dt=duration_cast<milliseconds>(steady_clock::now()-time0).count();
0 commit comments