comctl32: Keep on displaying the last frame of the animation after the animation has stopped.
This commit is contained in:
parent
68c8e5fe41
commit
92dde89506
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue