From 1113e3266f1a9df3506fb80189bfe00d9681b55e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 20 Apr 2002 17:54:55 +0000 Subject: [PATCH] fixed Width/Height cut&paste typo --- src/mesa/swrast/s_span.c | 6 +++--- src/mesa/swrast/s_stencil.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 77c013f0d34..9712efb919e 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1,4 +1,4 @@ -/* $Id: s_span.c,v 1.40 2002/04/19 01:08:48 brianp Exp $ */ +/* $Id: s_span.c,v 1.41 2002/04/20 17:54:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1306,7 +1306,7 @@ _mesa_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer, { SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLint bufWidth = (GLint) buffer->Width; - const GLint bufHeight = (GLint) buffer->Width; + const GLint bufHeight = (GLint) buffer->Height; if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) { /* completely above, below, or right */ @@ -1360,7 +1360,7 @@ _mesa_read_index_span( GLcontext *ctx, GLframebuffer *buffer, { SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLint bufWidth = (GLint) buffer->Width; - const GLint bufHeight = (GLint) buffer->Width; + const GLint bufHeight = (GLint) buffer->Height; if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) { /* completely above, below, or right */ diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 5f5575de0d9..fd0b2973bc0 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -1,4 +1,4 @@ -/* $Id: s_stencil.c,v 1.23 2002/04/19 00:38:27 brianp Exp $ */ +/* $Id: s_stencil.c,v 1.24 2002/04/20 17:54:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1018,7 +1018,7 @@ _mesa_read_stencil_span( GLcontext *ctx, { SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; - const GLint bufHeight = (GLint) ctx->DrawBuffer->Width; + const GLint bufHeight = (GLint) ctx->DrawBuffer->Height; if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) { /* span is completely outside framebuffer */ @@ -1072,7 +1072,7 @@ _mesa_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y, SWcontext *swrast = SWRAST_CONTEXT(ctx); const GLstencil *ssrc = stencil; const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; - const GLint bufHeight = (GLint) ctx->DrawBuffer->Width; + const GLint bufHeight = (GLint) ctx->DrawBuffer->Height; if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) { /* span is completely outside framebuffer */ -- 2.11.0