diff options
author | Brian Paul <[email protected]> | 2000-04-11 20:43:12 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-04-11 20:43:12 +0000 |
commit | b5410da76e15d670063de544569ae07f5ca9a00f (patch) | |
tree | cba70532d05d0f0454436ead8504c1e34a112a35 /src | |
parent | d0130a989a3b331eb8114f1ee4addb95ce31e0e2 (diff) |
fixed bug in XF86 writeRegionClipped()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/glide/fxddspan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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_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; |