~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/svga/svgamesa24.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: svgamesa24.c,v 1.12 2002-11-11 18:42:41 brianp Exp $ */
 
1
/* $Id: svgamesa24.c,v 1.13 2006/11/01 19:35:23 brianp Exp $ */
2
2
 
3
3
/*
4
4
 * Mesa 3-D graphics library
91
91
/*   SVGAMesa->clear_truecolor = red<<16 | green<<8 | blue; */
92
92
}
93
93
 
94
 
void __clear24( GLcontext *ctx, GLbitfield mask, GLboolean all,
95
 
                GLint x, GLint y, GLint width, GLint height )
 
94
void __clear24( GLcontext *ctx, GLbitfield mask )
96
95
{
97
96
   int i,j;
 
97
   int x = ctx->DrawBuffer->_Xmin;
 
98
   int y = ctx->DrawBuffer->_Ymin;
 
99
   int width = ctx->DrawBuffer->_Xmax - x;
 
100
   int height = ctx->DrawBuffer->_Ymax - y;
 
101
   GLboolean all = (width == ctx->DrawBuffer->Width && height == ctx->DrawBuffer->height)
98
102
   
99
103
   if (mask & DD_FRONT_LEFT_BIT) {
100
104
      if (all) {
140
144
   }
141
145
 
142
146
   if (mask)
143
 
      _swrast_Clear( ctx, mask, all, x, y, width, height );
 
147
      _swrast_Clear( ctx, mask );
144
148
}
145
149
 
146
150
void __write_rgba_span24( const GLcontext *ctx, GLuint n, GLint x, GLint y,