From 7c8cfc69773154937cbe5bbb797595ff78ec4913 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 22 Feb 2000 17:14:02 +0000 Subject: fixed bug in 24bpp ximage pixel addressing --- src/mesa/drivers/x11/xmesaP.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/x11/xmesaP.h b/src/mesa/drivers/x11/xmesaP.h index fbb49e0f620..f1f8f7f610b 100644 --- a/src/mesa/drivers/x11/xmesaP.h +++ b/src/mesa/drivers/x11/xmesaP.h @@ -1,4 +1,4 @@ -/* $Id: xmesaP.h,v 1.6 2000/01/07 07:24:50 brianp Exp $ */ +/* $Id: xmesaP.h,v 1.7 2000/02/22 17:14:02 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -197,7 +197,7 @@ struct xmesa_buffer { GLint ximage_width1; GLushort *ximage_origin2; /* used for PIXELADDR2 macro */ GLint ximage_width2; - bgr_t *ximage_origin3; /* used for PIXELADDR3 macro */ + GLubyte *ximage_origin3; /* used for PIXELADDR3 macro */ GLint ximage_width3; GLuint *ximage_origin4; /* used for PIXELADDR4 macro */ GLint ximage_width4; @@ -500,7 +500,7 @@ static int const kernel1[16] = { ( (BUFFER)->ximage_origin2 - (Y) * (BUFFER)->ximage_width2 + (X) ) #define PIXELADDR3( BUFFER, X, Y ) \ - ( (BUFFER)->ximage_origin3 - (Y) * (BUFFER)->ximage_width3 + (X) ) + ( (bgr_t *) ( (BUFFER)->ximage_origin3 - (Y) * (BUFFER)->ximage_width3 + 3 * (X) )) #define PIXELADDR4( BUFFER, X, Y ) \ ( (BUFFER)->ximage_origin4 - (Y) * (BUFFER)->ximage_width4 + (X) ) -- cgit v1.2.3