diff options
author | Brian Paul <[email protected]> | 2001-01-23 23:39:36 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-01-23 23:39:36 +0000 |
commit | b6bcae5698df88f7730d40004ce7ce0462e97a20 (patch) | |
tree | 14c77826b5016293914eb529822e609792150964 /src/mesa/swrast/s_buffers.c | |
parent | ab0c886a6c0dd38ac6168c2a239720a761e6578f (diff) |
Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.
Replace "RGBAMode" with "rgbMode", etc.
Other minor clean-ups.
Diffstat (limited to 'src/mesa/swrast/s_buffers.c')
-rw-r--r-- | src/mesa/swrast/s_buffers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/swrast/s_buffers.c b/src/mesa/swrast/s_buffers.c index c0564e0b6a5..46ffe8cc90c 100644 --- a/src/mesa/swrast/s_buffers.c +++ b/src/mesa/swrast/s_buffers.c @@ -1,10 +1,10 @@ -/* $Id: s_buffers.c,v 1.2 2000/11/13 20:02:57 keithw Exp $ */ +/* $Id: s_buffers.c,v 1.3 2001/01/23 23:39:37 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.5 * - * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -49,7 +49,7 @@ clear_color_buffer_with_masking( GLcontext *ctx ) const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; - if (ctx->Visual.RGBAflag) { + if (ctx->Visual.rgbMode) { /* RGBA mode */ const GLchan r = (GLint) (ctx->Color.ClearColor[0] * CHAN_MAXF); const GLchan g = (GLint) (ctx->Color.ClearColor[1] * CHAN_MAXF); @@ -99,7 +99,7 @@ clear_color_buffer(GLcontext *ctx) const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; - if (ctx->Visual.RGBAflag) { + if (ctx->Visual.rgbMode) { /* RGBA mode */ const GLchan r = (GLint) (ctx->Color.ClearColor[0] * CHAN_MAXF); const GLchan g = (GLint) (ctx->Color.ClearColor[1] * CHAN_MAXF); @@ -124,7 +124,7 @@ clear_color_buffer(GLcontext *ctx) else { /* Color index mode */ ASSERT(ctx->Color.IndexMask == ~0); - if (ctx->Visual.IndexBits == 8) { + if (ctx->Visual.indexBits == 8) { /* 8-bit clear */ GLubyte span[MAX_WIDTH]; GLint i; |