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_PRINTCLIENT:
|
||||||
case WM_PAINT:
|
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
|
* (and displayed) the first frame yet, don't paint
|
||||||
*/
|
*/
|
||||||
if ((!infoPtr->uTimer && !infoPtr->hThread) ||
|
if (!infoPtr->hbmPrevFrame)
|
||||||
!infoPtr->hbmPrevFrame)
|
|
||||||
{
|
{
|
||||||
/* default paint handling */
|
/* default paint handling */
|
||||||
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
|
||||||
|
|
Loading…
Reference in New Issue