summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorVille Syrjala <syrjala@users.sourceforge.net>2004-10-16 11:21:56 +0000
committerVille Syrjala <syrjala@users.sourceforge.net>2004-10-16 11:21:56 +0000
commitd403173005fd345ba8b83f19497a8aaf07e7eee6 (patch)
treee9b2ea76ef70af473ae46ddea26924c2a0f81c1f /shared-core
parent52fdf10fd79c2223c05e2146431343132b4db964 (diff)
Fixed off by one errors in clipping.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/mga_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/mga_state.c b/shared-core/mga_state.c
index 7d1df09a..558beed1 100644
--- a/shared-core/mga_state.c
+++ b/shared-core/mga_state.c
@@ -60,9 +60,9 @@ static void mga_emit_clip_rect(drm_mga_private_t * dev_priv,
MGA_LEN + MGA_EXEC, 0x80000000);
}
DMA_BLOCK(MGA_DMAPAD, 0x00000000,
- MGA_CXBNDRY, (box->x2 << 16) | box->x1,
+ MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1,
MGA_YTOP, box->y1 * pitch,
- MGA_YBOT, box->y2 * pitch);
+ MGA_YBOT, (box->y2 - 1) * pitch);
ADVANCE_DMA();
}