Browse Source

fixed Width/Height cut&paste typo

tags/mesa_4_1
Brian Paul 23 years ago
parent
commit
1113e3266f
2 changed files with 6 additions and 6 deletions
  1. 3
    3
      src/mesa/swrast/s_span.c
  2. 3
    3
      src/mesa/swrast/s_stencil.c

+ 3
- 3
src/mesa/swrast/s_span.c View File

/* $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 * Mesa 3-D graphics library
{ {
SWcontext *swrast = SWRAST_CONTEXT(ctx); SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLint bufWidth = (GLint) buffer->Width; 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) { if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) {
/* completely above, below, or right */ /* completely above, below, or right */
{ {
SWcontext *swrast = SWRAST_CONTEXT(ctx); SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLint bufWidth = (GLint) buffer->Width; 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) { if (y < 0 || y >= bufHeight || x + (GLint) n < 0 || x >= bufWidth) {
/* completely above, below, or right */ /* completely above, below, or right */

+ 3
- 3
src/mesa/swrast/s_stencil.c View File

/* $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 * Mesa 3-D graphics library
{ {
SWcontext *swrast = SWRAST_CONTEXT(ctx); SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; 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) { if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) {
/* span is completely outside framebuffer */ /* span is completely outside framebuffer */
SWcontext *swrast = SWRAST_CONTEXT(ctx); SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLstencil *ssrc = stencil; const GLstencil *ssrc = stencil;
const GLint bufWidth = (GLint) ctx->DrawBuffer->Width; 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) { if (y < 0 || y >= bufHeight || x + n <= 0 || x >= bufWidth) {
/* span is completely outside framebuffer */ /* span is completely outside framebuffer */

Loading…
Cancel
Save