summaryrefslogtreecommitdiff
path: root/render/mipict.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/mipict.c')
-rw-r--r--render/mipict.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/render/mipict.c b/render/mipict.c
index 2e64b20ff..de890d94c 100644
--- a/render/mipict.c
+++ b/render/mipict.c
@@ -457,14 +457,11 @@ miFillColor(CARD32 pixel, int bits)
Bool
miIsSolidAlpha(PicturePtr pSrc)
{
- ScreenPtr pScreen;
char line[1];
if (!pSrc->pDrawable)
return FALSE;
- pScreen = pSrc->pDrawable->pScreen;
-
/* Alpha-only */
if (PICT_FORMAT_TYPE(pSrc->format) != PICT_TYPE_A)
return FALSE;
@@ -475,7 +472,8 @@ miIsSolidAlpha(PicturePtr pSrc)
if (pSrc->pDrawable->width != 1 || pSrc->pDrawable->height != 1)
return FALSE;
line[0] = 1;
- (*pScreen->GetImage) (pSrc->pDrawable, 0, 0, 1, 1, ZPixmap, ~0L, line);
+ pSrc->pDrawable->ops->GetImage(pSrc->pDrawable, 0, 0, 1, 1, ZPixmap, ~0L,
+ line);
switch (pSrc->pDrawable->bitsPerPixel) {
case 1:
return (CARD8) line[0] == 1 || (CARD8) line[0] == 0x80;