summaryrefslogtreecommitdiff
path: root/cfb/cfbigblt8.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfb/cfbigblt8.c')
-rw-r--r--cfb/cfbigblt8.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/cfb/cfbigblt8.c b/cfb/cfbigblt8.c
index 7e20e2578..aa1060240 100644
--- a/cfb/cfbigblt8.c
+++ b/cfb/cfbigblt8.c
@@ -26,9 +26,12 @@ in this Software without prior written authorization from The Open Group.
* Author: Keith Packard, MIT X Consortium
*/
+/* $XFree86: xc/programs/Xserver/cfb/cfbigblt8.c,v 1.6 2001/12/14 19:59:23 dawes Exp $ */
+
#include "X.h"
#include "Xmd.h"
#include "Xproto.h"
+#include "mi.h"
#include "cfb.h"
#include "fontstruct.h"
#include "dixfontstr.h"
@@ -51,14 +54,18 @@ cfbImageGlyphBlt8 (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase)
{
ExtentInfoRec info; /* used by QueryGlyphExtents() */
xRectangle backrect;
- int fillStyle;
- int alu;
int fgPixel;
- int rop;
- int xor;
- int and;
- int pm;
- cfbPrivGC *priv;
+ cfbPrivGC *priv;
+
+ /*
+ * We can't avoid GC validations if calling mi functions.
+ */
+ if ((pGC->ops->PolyFillRect == miPolyFillRect) ||
+ (pGC->ops->PolyGlyphBlt == miPolyGlyphBlt))
+ {
+ miImageGlyphBlt(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
+ return;
+ }
QueryGlyphExtents(pGC->font, ppci, (unsigned long)nglyph, &info);