diff options
author | Eric Anholt <anholt@freebsd.org> | 2006-02-10 22:00:30 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2006-02-10 22:00:30 +0000 |
commit | c3d14036729fd186d4ec7ca1de603e1f2d174e2f (patch) | |
tree | 6fc1290e4da4a16eea3c10c250d302df6b9e98c2 /mfb/mfbzerarc.c | |
parent | a8cec1b656f57746758613213de1d6e5acb79451 (diff) |
Remove libcwrapper usage from xorg server modules. The libcwrapper is only
of (marginal) use in the drivers, and that usage remains.
Diffstat (limited to 'mfb/mfbzerarc.c')
-rw-r--r-- | mfb/mfbzerarc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mfb/mfbzerarc.c b/mfb/mfbzerarc.c index 92fd81dfb..cc45ee2d4 100644 --- a/mfb/mfbzerarc.c +++ b/mfb/mfbzerarc.c @@ -37,6 +37,8 @@ in this Software without prior written authorization from The Open Group. #include <dix-config.h> #endif +#include <sys/limits.h> + #include <X11/X.h> #include <X11/Xprotostr.h> #include "regionstr.h" @@ -246,7 +248,7 @@ mfbZeroPolyArcSS(pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) mfbZeroArcSS(pDraw, pGC, arc); else |