summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/mga/mgastate.c
diff options
context:
space:
mode:
authorVille Syrjala <[email protected]>2004-10-16 11:09:26 +0000
committerVille Syrjala <[email protected]>2004-10-16 11:09:26 +0000
commit63e9a968ffabb0d7adcfd39aeb2f019b943ebb59 (patch)
tree081a85bcf955d31014e9eff13c16051255eaee38 /src/mesa/drivers/dri/mga/mgastate.c
parentb1ebd306bf4fdc4076d3d3daa410b08f477cb4c4 (diff)
Fixed off by one errors in clipping.
Diffstat (limited to 'src/mesa/drivers/dri/mga/mgastate.c')
-rw-r--r--src/mesa/drivers/dri/mga/mgastate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/mga/mgastate.c b/src/mesa/drivers/dri/mga/mgastate.c
index 6e63294f65e..295d3f5a088 100644
--- a/src/mesa/drivers/dri/mga/mgastate.c
+++ b/src/mesa/drivers/dri/mga/mgastate.c
@@ -299,8 +299,8 @@ void mgaUpdateClipping(const GLcontext *ctx)
int x1 = mmesa->driDrawable->x + ctx->Scissor.X;
int y1 = mmesa->driDrawable->y + mmesa->driDrawable->h
- (ctx->Scissor.Y + ctx->Scissor.Height);
- int x2 = x1 + ctx->Scissor.Width - 1;
- int y2 = y1 + ctx->Scissor.Height - 1;
+ int x2 = x1 + ctx->Scissor.Width;
+ int y2 = y1 + ctx->Scissor.Height;
if (x1 < 0) x1 = 0;
if (y1 < 0) y1 = 0;