From b5410da76e15d670063de544569ae07f5ca9a00f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Apr 2000 20:43:12 +0000 Subject: [PATCH] fixed bug in XF86 writeRegionClipped() --- src/mesa/drivers/glide/fxddspan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2