diff options
author | Brian Paul <[email protected]> | 2000-02-22 17:14:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-02-22 17:14:02 +0000 |
commit | 7c8cfc69773154937cbe5bbb797595ff78ec4913 (patch) | |
tree | 879e0ae27a0e384e0f33d31a8cd1532a08dc2fce /src/mesa/drivers/x11 | |
parent | 02da4625b89affc88df296295d549b33c37ce52c (diff) |
fixed bug in 24bpp ximage pixel addressing
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/xmesaP.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) ) |