From 48c6a6ecd2b94d73317f1579193d98101566217a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 8 Sep 2000 21:28:04 +0000 Subject: changed gl_frame_buffer Xmax and Ymax to be exclusive boundary values --- src/mesa/main/accum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/accum.c') diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 7b2f1ca57ee..35394181502 100644 --- a/src/mesa/main/accum.c +++ b/src/mesa/main/accum.c @@ -1,8 +1,8 @@ -/* $Id: accum.c,v 1.24 2000/09/07 15:45:26 brianp Exp $ */ +/* $Id: accum.c,v 1.25 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. * @@ -467,8 +467,8 @@ _mesa_clear_accum_buffer( GLcontext *ctx ) b = (GLaccum) (ctx->Accum.ClearColor[2] * acc_scale); a = (GLaccum) (ctx->Accum.ClearColor[3] * acc_scale); /* size of region to clear */ - width = 4 * (ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin + 1); - height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin + 1; + width = 4 * (ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin); + height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin; /* ptr to first element to clear */ row = ctx->DrawBuffer->Accum + 4 * (ctx->DrawBuffer->Ymin * ctx->DrawBuffer->Width -- cgit v1.2.3