Don't let the visible screen get "migrated" offscreen, which manifests

itself as a hang.
Reported by: Ginokas <ginokas@free.fr>
This commit is contained in:
Eric Anholt 2004-05-14 00:27:29 +00:00
parent 40354e7618
commit 2bea33e881

View File

@ -198,7 +198,7 @@ kaaPixmapUseScreen (PixmapPtr pPixmap)
if (pKaaPixmap->score < KAA_PIXMAP_SCORE_MAX)
{
pKaaPixmap->score++;
if (!pKaaPixmap->area &&
if (!kaaPixmapIsOffscreen(pPixmap) &&
pKaaPixmap->score >= KAA_PIXMAP_SCORE_MOVE_IN)
kaaMoveInPixmap (pPixmap);
}