Commit 9a05f8f7 authored by Keith Packard's avatar Keith Packard

Minor cleanups -- remove a couple of bogus KdCheckSync calls, restructure

    KdOffscreenSwapOut to avoid unneeded 'continue'
parent 16b2ea64
......@@ -262,7 +262,6 @@ kaaDestroyPixmap (PixmapPtr pPixmap)
pPixmap->drawable.width,
pPixmap->drawable.height));
/* Free the offscreen area */
KdCheckSync (pScreen);
KdOffscreenFree (pKaaPixmap->area);
pPixmap->devPrivate = pKaaPixmap->devPrivate;
pPixmap->devKind = pKaaPixmap->devKind;
......
......@@ -71,7 +71,6 @@ static void
KdOffscreenKickOut (KdOffscreenArea *area)
{
RealOffscreenArea *real_area = (RealOffscreenArea *) area;
KdCheckSync (area->screen);
if (real_area->save)
(*real_area->save) (area);
KdOffscreenFree (area);
......@@ -209,14 +208,12 @@ KdOffscreenSwapOut (ScreenPtr pScreen)
if (!area)
break;
if (area->area.screen)
if (!area->area.screen)
{
KdOffscreenKickOut (&area->area);
continue;
area = area->next;
if (!area)
break;
}
area = area->next;
if (!area)
break;
assert (area->area.screen);
KdOffscreenKickOut (&area->area);
KdOffscreenValidate (pScreen);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment