diff options
author | Brian Paul <[email protected]> | 2000-09-08 21:28:04 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-08 21:28:04 +0000 |
commit | 48c6a6ecd2b94d73317f1579193d98101566217a (patch) | |
tree | 2de10e0a4070195594e73898d6051c3ad266d921 /src/mesa/main/buffers.c | |
parent | e18e0e98fea2384892324c84bf463d65c1159f7b (diff) |
changed gl_frame_buffer Xmax and Ymax to be exclusive boundary values
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index dd87009031f..c53dd137049 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -1,7 +1,8 @@ +/* $Id: buffers.c,v 1.11 2000/09/08 21:28:04 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 3.5 * * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * @@ -90,8 +91,8 @@ clear_color_buffer_with_masking( GLcontext *ctx ) { const GLint x = ctx->DrawBuffer->Xmin; const GLint y = ctx->DrawBuffer->Ymin; - const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin + 1; - const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin + 1; + const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin; + const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin; if (ctx->Visual->RGBAflag) { /* RGBA mode */ @@ -140,8 +141,8 @@ clear_color_buffer(GLcontext *ctx) { const GLint x = ctx->DrawBuffer->Xmin; const GLint y = ctx->DrawBuffer->Ymin; - const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin + 1; - const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin + 1; + const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin; + const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin; const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask); if (ctx->Visual->RGBAflag) { @@ -255,8 +256,8 @@ _mesa_Clear( GLbitfield mask ) if (ctx->RenderMode==GL_RENDER) { const GLint x = ctx->DrawBuffer->Xmin; const GLint y = ctx->DrawBuffer->Ymin; - const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin + 1; - const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin + 1; + const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin; + const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin; GLbitfield ddMask; GLbitfield newMask; |