QMovie frames are rendered twice

Koos Vriezen koos.vriezen at xs4all.nl
Fri Jun 14 23:08:59 BST 2002


Hi,

In misc/loader.cpp setPixmap is called from CachedImage::do_notify, which
is called from CachedImage::movieUpdated and CachedImage::movieStatus:

void CachedImage::movieUpdated( const QRect& r )
{
    .....
    do_notify(m->framePixmap(), r);
}

void CachedImage::movieStatus(int status)
{
    ....
    if((status == QMovie::EndOfFrame) || (status == QMovie::EndOfMovie))
    {
            ....
            do_notify(pixmap(), valid_rect());
    }
}

Which means each frame is rendered twice. Shouldn't the 'if' statement
in CachedImage::movieStatus be removed?

Regards,

Koos Vriezen





More information about the kfm-devel mailing list