Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/dev Fix off by one in copyrows() backward c...
details: https://anonhg.NetBSD.org/src/rev/3ec51048cafb
branches: trunk
changeset: 325060:3ec51048cafb
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Dec 02 13:45:40 2013 +0000
description:
Fix off by one in copyrows() backward case.
diffstat:
sys/arch/luna68k/dev/omrasops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 86d8a2a2c6b5 -r 3ec51048cafb sys/arch/luna68k/dev/omrasops.c
--- a/sys/arch/luna68k/dev/omrasops.c Mon Dec 02 13:16:49 2013 +0000
+++ b/sys/arch/luna68k/dev/omrasops.c Mon Dec 02 13:45:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omrasops.c,v 1.13 2012/07/20 19:31:53 tsutsui Exp $ */
+/* $NetBSD: omrasops.c,v 1.14 2013/12/02 13:45:40 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: omrasops.c,v 1.13 2012/07/20 19:31:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omrasops.c,v 1.14 2013/12/02 13:45:40 tsutsui Exp $");
/*
* Designed speficically for 'm68k bitorder';
@@ -227,7 +227,7 @@
srcy = ri->ri_font->fontheight * srcrow;
if (srcrow < dstrow && srcrow + nrows > dstrow) {
scanspan = -scanspan;
- srcy += height;
+ srcy = srcy + height - 1;
}
p = (uint8_t *)ri->ri_bits + srcy * ri->ri_stride;
Home |
Main Index |
Thread Index |
Old Index