From b6bcae5698df88f7730d40004ce7ce0462e97a20 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 Jan 2001 23:39:36 +0000 Subject: Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h. Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups. --- src/mesa/swrast/s_buffers.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/swrast/s_buffers.c') diff --git a/src/mesa/swrast/s_buffers.c b/src/mesa/swrast/s_buffers.c index c0564e0b6a..46ffe8cc90 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; -- cgit v1.2.3