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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/svga/svgamesa15.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: svgamesa15.c,v 1.11 2002-11-11 18:42:39 brianp Exp $ */
 
1
/* $Id: svgamesa15.c,v 1.12 2006/11/01 19:35:23 brianp Exp $ */
2
2
 
3
3
/*
4
4
 * Mesa 3-D graphics library
66
66
/*   SVGAMesa->clear_hicolor=(red)<<10 | (green)<<5 | (blue);*/
67
67
}   
68
68
 
69
 
void __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all,
70
 
                GLint x, GLint y, GLint width, GLint height )
 
69
void __clear15( GLcontext *ctx, GLbitfield mask )
71
70
{
72
71
   int i, j;
 
72
   int x = ctx->DrawBuffer->_Xmin;
 
73
   int y = ctx->DrawBuffer->_Ymin;
 
74
   int width = ctx->DrawBuffer->_Xmax - x;
 
75
   int height = ctx->DrawBuffer->_Ymax - y;
 
76
   GLboolean all = (width == ctx->DrawBuffer->Width && height == ctx->DrawBuffer->height)
73
77
 
74
78
   if (mask & DD_FRONT_LEFT_BIT) {
75
79
      GLshort *shortBuffer=(void *)SVGABuffer.FrontBuffer;
105
109
   }
106
110
 
107
111
   if (mask)
108
 
      _swrast_Clear( ctx, mask, all, x, y, width, height );
 
112
      _swrast_Clear( ctx, mask );
109
113
}
110
114
 
111
115
void __write_rgba_span15( const GLcontext *ctx, GLuint n, GLint x, GLint y,