summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/windows/wmesa.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-09-08 21:44:55 +0000
committerBrian Paul <[email protected]>2000-09-08 21:44:55 +0000
commit7f7b205259b228f81442f89e8318829737b08db6 (patch)
tree37fbd611954861ddf89bf7935e6bdaff8cb4d973 /src/mesa/drivers/windows/wmesa.c
parent48c6a6ecd2b94d73317f1579193d98101566217a (diff)
removed ctx->Driver.Dither function
Diffstat (limited to 'src/mesa/drivers/windows/wmesa.c')
-rw-r--r--src/mesa/drivers/windows/wmesa.c29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c
index f0a1c84fe5c..33a8f196310 100644
--- a/src/mesa/drivers/windows/wmesa.c
+++ b/src/mesa/drivers/windows/wmesa.c
@@ -1,4 +1,4 @@
-/* $Id: wmesa.c,v 1.5 2000/09/07 15:45:28 brianp Exp $ */
+/* $Id: wmesa.c,v 1.6 2000/09/08 21:44:56 brianp Exp $ */
/*
* File name : wmesa.c
@@ -22,6 +22,9 @@
/*
* $Log: wmesa.c,v $
+ * Revision 1.6 2000/09/08 21:44:56 brianp
+ * removed ctx->Driver.Dither function
+ *
* Revision 1.5 2000/09/07 15:45:28 brianp
* Removed ctx->Driver.LogicOp().
* ctx->Driver.Index/ColorMask() now return void.
@@ -570,24 +573,26 @@ static void set_color( GLcontext* ctx, GLubyte r, GLubyte g, GLubyte b, GLubyte
}
-static void dither( GLcontext* ctx, GLboolean enable )
+static void enable( GLcontext* ctx, GLenum pname, GLboolean enable )
{
if (!Current)
return;
- if(enable == GL_FALSE){
- Current->dither_flag = GL_FALSE;
- if(Current->cColorBits == 8)
+ if (pname == GL_DITHER) {
+ if(enable == GL_FALSE){
+ Current->dither_flag = GL_FALSE;
+ if(Current->cColorBits == 8)
Current->pixelformat = PF_INDEX8;
- }
- else{
- if (Current->rgb_flag && Current->cColorBits == 8){
+ }
+ else{
+ if (Current->rgb_flag && Current->cColorBits == 8){
Current->pixelformat = PF_DITHER8;
Current->dither_flag = GL_TRUE;
- }
- else
+ }
+ else
Current->dither_flag = GL_FALSE;
- }
+ }
+ }
}
@@ -1165,7 +1170,7 @@ void setup_DD_pointers( GLcontext* ctx )
ctx->Driver.Index = set_index;
ctx->Driver.Color = set_color;
- ctx->Driver.Dither = dither;
+ ctx->Driver.Enable = enable;
ctx->Driver.SetBuffer = set_buffer;
ctx->Driver.GetBufferSize = buffer_size;