From: Brian Paul Date: Tue, 11 Apr 2000 20:43:12 +0000 (+0000) Subject: fixed bug in XF86 writeRegionClipped() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5410da76e15d670063de544569ae07f5ca9a00f;p=mesa.git fixed bug in XF86 writeRegionClipped() --- diff --git a/src/mesa/drivers/glide/fxddspan.c b/src/mesa/drivers/glide/fxddspan.c index c6fcb2ea2e5..8256697c32a 100644 --- a/src/mesa/drivers/glide/fxddspan.c +++ b/src/mesa/drivers/glide/fxddspan.c @@ -99,7 +99,7 @@ static FxBool writeRegionClipped(fxMesaContext fxMesa, GrBuffer_t dst_buffer, if (dst_y>=fxMesa->pClipRects[i].y1 && dst_ypClipRects[i].y2) { if (dst_xpClipRects[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;