From 4676b6260f7e3c6144f4346c0660603a031b1834 Mon Sep 17 00:00:00 2001
From: Brian Paul <brian.paul@tungstengraphics.com>
Date: Sat, 21 Oct 2006 21:13:40 +0000
Subject: don't use params passed to Clear()

---
 src/mesa/drivers/windows/gdi/wmesa.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/mesa')

diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c
index 78e3d9ec8d1..0dfd7a6b393 100644
--- a/src/mesa/drivers/windows/gdi/wmesa.c
+++ b/src/mesa/drivers/windows/gdi/wmesa.c
@@ -284,10 +284,14 @@ static void clear_color(GLcontext *ctx, const GLfloat color[4])
 static void clear(GLcontext *ctx, 
 		  GLbitfield mask, 
 		  GLboolean all, 
-		  GLint x, GLint y, 
-		  GLint width, GLint height) 
+		  GLint xFoo, GLint yFoo,
+		  GLint widthFoo, GLint heightFoo) 
 {
 #define FLIP(Y)  (ctx->DrawBuffer->Height - (Y) - 1)
+    const GLint x = ctx->DrawBuffer->_Xmin;
+    const GLint y = ctx->DrawBuffer->_Ymin;
+    const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin;
+    const GLint width  = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin;
 
     WMesaContext pwc = wmesa_context(ctx);
     WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer);
-- 
cgit v1.2.3