diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-11-01 19:35:22 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-11-01 19:35:22 +0000 |
commit | a5676795cfe2e24979b5da65c2f499049ab009d9 (patch) | |
tree | dfd5410b799bceb46a5787f0dbad0a90ac4b8809 /src/mesa/drivers/svga/svgamesa15.c | |
parent | 533e5a73ee8fbc500b711aff566f00c10812ad4d (diff) | |
download | external_mesa3d-a5676795cfe2e24979b5da65c2f499049ab009d9.zip external_mesa3d-a5676795cfe2e24979b5da65c2f499049ab009d9.tar.gz external_mesa3d-a5676795cfe2e24979b5da65c2f499049ab009d9.tar.bz2 |
Remove x/y/width/height parameters from Clear functions.
Diffstat (limited to 'src/mesa/drivers/svga/svgamesa15.c')
-rw-r--r-- | src/mesa/drivers/svga/svgamesa15.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mesa/drivers/svga/svgamesa15.c b/src/mesa/drivers/svga/svgamesa15.c index 54b6c97..a4c0901 100644 --- a/src/mesa/drivers/svga/svgamesa15.c +++ b/src/mesa/drivers/svga/svgamesa15.c @@ -1,4 +1,4 @@ -/* $Id: svgamesa15.c,v 1.11 2002/11/11 18:42:39 brianp Exp $ */ +/* $Id: svgamesa15.c,v 1.12 2006/11/01 19:35:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -66,10 +66,14 @@ void __clear_color15( GLcontext *ctx, const GLfloat color[4] ) /* SVGAMesa->clear_hicolor=(red)<<10 | (green)<<5 | (blue);*/ } -void __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all, - GLint x, GLint y, GLint width, GLint height ) +void __clear15( GLcontext *ctx, GLbitfield mask ) { int i, j; + int x = ctx->DrawBuffer->_Xmin; + int y = ctx->DrawBuffer->_Ymin; + int width = ctx->DrawBuffer->_Xmax - x; + int height = ctx->DrawBuffer->_Ymax - y; + GLboolean all = (width == ctx->DrawBuffer->Width && height == ctx->DrawBuffer->height) if (mask & DD_FRONT_LEFT_BIT) { GLshort *shortBuffer=(void *)SVGABuffer.FrontBuffer; @@ -105,7 +109,7 @@ void __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all, } if (mask) - _swrast_Clear( ctx, mask, all, x, y, width, height ); + _swrast_Clear( ctx, mask ); } void __write_rgba_span15( const GLcontext *ctx, GLuint n, GLint x, GLint y, |