From c3a4dbfbd693de951ec0d6dbd0a9f0613839badb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Feb 2001 23:57:48 +0000 Subject: [PATCH] fixed a few CI mode span bugs and a dither bug --- src/mesa/drivers/x11/xm_span.c | 49 +++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 714fcaf31ec..344b02a7146 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -1,4 +1,4 @@ -/* $Id: xm_span.c,v 1.7 2001/01/29 22:40:23 brianp Exp $ */ +/* $Id: xm_span.c,v 1.8 2001/02/13 23:57:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2300,7 +2300,7 @@ static void write_pixels_TRUEDITHER_ximage( RGBA_PIXEL_ARGS ) for (i=0;ixm_buffer, y[i]), rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP]); + PACK_TRUEDITHER(p, x[i], y[i], rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP]); XMesaPutPixel( img, x[i], FLIP(xmesa->xm_buffer, y[i]), p ); } } @@ -3287,10 +3287,18 @@ static void write_span_index_pixmap( INDEX_SPAN_ARGS ) XMesaGC gc = xmesa->xm_buffer->gc; register GLuint i; y = FLIP(xmesa->xm_buffer, y); - for (i=0;ixm_buffer->gc; register GLuint i; y = FLIP(xmesa->xm_buffer, y); - for (i=0;ixm_buffer->backimage; register GLuint i; y = FLIP(xmesa->xm_buffer, y); - for (i=0;i