summaryrefslogtreecommitdiff
path: root/fb/fbgc.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:39 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:39 +0000
commit12e532010b9e8cb67bedd44d489c9c40dd265165 (patch)
treed680aac8b959e207f02d40069c6e6b5ab930f177 /fb/fbgc.c
parent305c444de3baa863d7abc4221e8cebb973805847 (diff)
XFree86 4.3.99.902 (RC 2)xf86-4_3_99_902
Diffstat (limited to 'fb/fbgc.c')
-rw-r--r--fb/fbgc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/fb/fbgc.c b/fb/fbgc.c
index 28c58a673..1e9eb5aa3 100644
--- a/fb/fbgc.c
+++ b/fb/fbgc.c
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/fb/fbgc.c,v 1.12 2001/05/29 04:54:09 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/fb/fbgc.c,v 1.15 2003/12/18 15:25:41 alanh Exp $ */
#include "fb.h"
#ifdef IN_MODULE
@@ -253,17 +253,19 @@ fbValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
}
if (changes & GCStipple)
{
- if (pGC->stipple &&
- (FbEvenStip (pGC->stipple->drawable.width,
- pDrawable->bitsPerPixel) ||
- fbCanEvenStipple (pGC->stipple, pDrawable->bitsPerPixel)))
- {
- pPriv->evenStipple = TRUE;
+ pPriv->evenStipple = FALSE;
+
+ if (pGC->stipple) {
+
+ /* can we do an even stipple ?? */
+ if (FbEvenStip (pGC->stipple->drawable.width,
+ pDrawable->bitsPerPixel) &&
+ (fbCanEvenStipple (pGC->stipple, pDrawable->bitsPerPixel)))
+ pPriv->evenStipple = TRUE;
+
if (pGC->stipple->drawable.width * pDrawable->bitsPerPixel < FB_UNIT)
fbPadPixmap (pGC->stipple);
}
- else
- pPriv->evenStipple = FALSE;
}
/*
* Recompute reduced rop values