From 92dde895069722f1dcfd8d6f51cf712071142085 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 16 Jan 2008 14:03:09 +0000 Subject: [PATCH] comctl32: Keep on displaying the last frame of the animation after the animation has stopped. --- dlls/comctl32/animate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c index 5e3ffb1570c..d4283a1ac0b 100644 --- a/dlls/comctl32/animate.c +++ b/dlls/comctl32/animate.c @@ -903,11 +903,10 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP case WM_PRINTCLIENT: case WM_PAINT: { - /* the animation isn't playing, or has not decompressed + /* the animation has not decompressed * (and displayed) the first frame yet, don't paint */ - if ((!infoPtr->uTimer && !infoPtr->hThread) || - !infoPtr->hbmPrevFrame) + if (!infoPtr->hbmPrevFrame) { /* default paint handling */ return DefWindowProcW(hWnd, uMsg, wParam, lParam);