summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2003-06-10 22:07:38 +0000
committeruwe <uwe@NetBSD.org>2003-06-10 22:07:38 +0000
commita7ed2dae3d36700522cd842337077f39acc8045f (patch)
tree35a107d9c8cbcafbce35725c91fddacac1fd037c /sys/dev/ic
parent2a8b4af820701f6b5b5bdffa83f3732af9175cc6 (diff)
Correct calculation of the blit src/dst for blits we do backwards.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/igsfb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/igsfb.c b/sys/dev/ic/igsfb.c
index 224e9e88a22..72fff70082e 100644
--- a/sys/dev/ic/igsfb.c
+++ b/sys/dev/ic/igsfb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: igsfb.c,v 1.12 2003/05/31 23:22:27 uwe Exp $ */
+/* $NetBSD: igsfb.c,v 1.13 2003/06/10 22:07:38 uwe Exp $ */
/*
* Copyright (c) 2002, 2003 Valeriy E. Ushakov
@@ -31,7 +31,7 @@
* Integraphics Systems IGA 168x and CyberPro series.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.12 2003/05/31 23:22:27 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.13 2003/06/10 22:07:38 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1258,7 +1258,7 @@ igsfb_accel_copy(dc, src, dst, width, height)
drawcmd = IGS_COP_DRAW_ALL;
if (dst > src) {
- toend = height * dc->dc_ri.ri_width;
+ toend = dc->dc_ri.ri_width * (height - 1) + (width - 1);
src += toend;
dst += toend;
drawcmd |= IGS_COP_OCTANT_X_NEG | IGS_COP_OCTANT_Y_NEG;