summaryrefslogtreecommitdiff
path: root/fb/fbgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fb/fbgc.c')
-rw-r--r--fb/fbgc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fb/fbgc.c b/fb/fbgc.c
index 5b5581093..1aca17c7c 100644
--- a/fb/fbgc.c
+++ b/fb/fbgc.c
@@ -116,6 +116,8 @@ fbPadPixmap (PixmapPtr pPixmap)
*bits = b;
bits += stride;
}
+
+ fbFinishAccess (&pPixmap->drawable);
}
/*
@@ -183,10 +185,13 @@ fbCanEvenStipple (PixmapPtr pStipple, int bpp)
/* check to see that the stipple repeats horizontally */
while (h--)
{
- if (!fbLineRepeat (bits, len, pStipple->drawable.width))
+ if (!fbLineRepeat (bits, len, pStipple->drawable.width)) {
+ fbFinishAccess (&pStipple->drawable);
return FALSE;
+ }
bits += stride;
}
+ fbFinishAccess (&pStipple->drawable);
return TRUE;
}