Don't need to adjust for drawXoff in fallback clipping.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 30 Dec 2004 15:58:45 +0000 (15:58 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 30 Dec 2004 15:58:45 +0000 (15:58 +0000)
src/mesa/drivers/dri/unichrome/via_span.c

index 4fdfec3eaa61599b35b089dea08edb0864ed2539..07d20adc0f97b9b48ab7cf6c3ad1a34002589e40 100644 (file)
         __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()                                            \