summaryrefslogtreecommitdiff
path: root/hw/xfree86/xf4bpp/mfbzerarc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/xf4bpp/mfbzerarc.c')
-rw-r--r--hw/xfree86/xf4bpp/mfbzerarc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xfree86/xf4bpp/mfbzerarc.c b/hw/xfree86/xf4bpp/mfbzerarc.c
index c7a8c4d56..61fc7b184 100644
--- a/hw/xfree86/xf4bpp/mfbzerarc.c
+++ b/hw/xfree86/xf4bpp/mfbzerarc.c
@@ -108,7 +108,8 @@ v16ZeroArcSS
int pmask;
register int *paddr;
- if (((mfbPrivGC *)(pGC->devPrivates[mfbGetGCPrivateIndex()].ptr))->rop ==
+ if (((mfbPrivGC *)dixLookupPrivate(&pGC->devPrivates,
+ mfbGetGCPrivateKey()))->rop ==
RROP_BLACK)
pixel = 0;
else