summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/svga/svgamesa8.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-11-14 17:40:13 +0000
committerBrian Paul <[email protected]>2000-11-14 17:40:13 +0000
commitc19d783e0715ac01ad4d3fd0705500d2bf6f7039 (patch)
tree68e28470e87358b225e07477a4900d79f8e47b0b /src/mesa/drivers/svga/svgamesa8.c
parent1e1aac034c986a08248861363c0baa27dc2ae2d5 (diff)
Removed Driver.Color() and Driver.Index() functions.
Pass color or color index directly to WriteMono*() span functions. Updated current s/w drivers accordingly. Clean-up of X gc handling in XMesa driver.
Diffstat (limited to 'src/mesa/drivers/svga/svgamesa8.c')
-rw-r--r--src/mesa/drivers/svga/svgamesa8.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mesa/drivers/svga/svgamesa8.c b/src/mesa/drivers/svga/svgamesa8.c
index 2578428178f..a829063520c 100644
--- a/src/mesa/drivers/svga/svgamesa8.c
+++ b/src/mesa/drivers/svga/svgamesa8.c
@@ -1,4 +1,4 @@
-/* $Id: svgamesa8.c,v 1.6 2000/06/14 21:59:07 brianp Exp $ */
+/* $Id: svgamesa8.c,v 1.7 2000/11/14 17:40:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -53,11 +53,6 @@ static unsigned long __svga_getpixel8(int x, int y)
return SVGABuffer.ReadBuffer[offset];
}
-void __set_index8( GLcontext *ctx, GLuint index )
-{
- SVGAMesa->index = index;
-}
-
void __clear_index8( GLcontext *ctx, GLuint index )
{
SVGAMesa->clear_index = index;
@@ -121,12 +116,13 @@ void __write_ci8_span8( const GLcontext *ctx, GLuint n, GLint x, GLint y,
}
void __write_mono_ci_span8( const GLcontext *ctx, GLuint n,
- GLint x, GLint y, const GLubyte mask[] )
+ GLint x, GLint y,
+ GLuint colorIndex, const GLubyte mask[] )
{
int i;
for (i=0;i<n;i++,x++) {
if (mask[i]) {
- __svga_drawpixel8( x, y, SVGAMesa->index);
+ __svga_drawpixel8( x, y, colorIndex);
}
}
}
@@ -155,12 +151,12 @@ void __write_ci32_pixels8( const GLcontext *ctx,
void __write_mono_ci_pixels8( const GLcontext *ctx, GLuint n,
const GLint x[], const GLint y[],
- const GLubyte mask[] )
+ GLuint colorIndex, const GLubyte mask[] )
{
int i;
for (i=0; i<n; i++) {
if (mask[i]) {
- __svga_drawpixel8( x[i], y[i], SVGAMesa->index);
+ __svga_drawpixel8( x[i], y[i], colorIndex);
}
}
}