From: Keith Whitwell Date: Thu, 30 Dec 2004 15:58:45 +0000 (+0000) Subject: Don't need to adjust for drawXoff in fallback clipping. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58cc2e9124dc76492f2e7d8843f74df511e4054e;p=mesa.git Don't need to adjust for drawXoff in fallback clipping. --- diff --git a/src/mesa/drivers/dri/unichrome/via_span.c b/src/mesa/drivers/dri/unichrome/via_span.c index 4fdfec3eaa6..07d20adc0f9 100644 --- a/src/mesa/drivers/dri/unichrome/via_span.c +++ b/src/mesa/drivers/dri/unichrome/via_span.c @@ -63,10 +63,10 @@ __DRIdrawablePrivate *dPriv = vmesa->driDrawable; \ int _nc = dPriv->numClipRects; \ while (_nc--) { \ - int minx = dPriv->pClipRects[_nc].x1 - vmesa->drawX; \ - int miny = dPriv->pClipRects[_nc].y1 - vmesa->drawY; \ - int maxx = dPriv->pClipRects[_nc].x2 - vmesa->drawX; \ - int maxy = dPriv->pClipRects[_nc].y2 - vmesa->drawY; + int minx = dPriv->pClipRects[_nc].x1 - dPriv->x; \ + int miny = dPriv->pClipRects[_nc].y1 - dPriv->y; \ + int maxx = dPriv->pClipRects[_nc].x2 - dPriv->x; \ + int maxy = dPriv->pClipRects[_nc].y2 - dPriv->y; #define HW_ENDCLIPLOOP() \