fixed bug in XF86 writeRegionClipped()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Apr 2000 20:43:12 +0000 (20:43 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Apr 2000 20:43:12 +0000 (20:43 +0000)
src/mesa/drivers/glide/fxddspan.c

index c6fcb2ea2e5db7c75ca37c3fe4ba94a0b4dcc475..8256697c32a304781ea5a1a2bbc40330e0893777 100644 (file)
@@ -99,7 +99,7 @@ static FxBool writeRegionClipped(fxMesaContext fxMesa, GrBuffer_t dst_buffer,
       if (dst_y>=fxMesa->pClipRects[i].y1 && dst_y<fxMesa->pClipRects[i].y2) {
        if (dst_x<fxMesa->pClipRects[i].x1) {
          x=fxMesa->pClipRects[i].x1;
-         data=((char*)src_data)+srcElt*(dst_x-x);
+         data=((char*)src_data)+srcElt*(x - dst_x);
          w=src_width-(x-dst_x);
        } else {
          x=dst_x;