Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Copy forwards even when moving to the right, if ...
details: https://anonhg.NetBSD.org/src/rev/ebb7f5a65714
branches: trunk
changeset: 536463:ebb7f5a65714
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Sep 16 16:40:57 2002 +0000
description:
Copy forwards even when moving to the right, if the regions do not overlap.
diffstat:
sys/dev/pci/tga.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 5fda35186218 -r ebb7f5a65714 sys/dev/pci/tga.c
--- a/sys/dev/pci/tga.c Mon Sep 16 16:39:52 2002 +0000
+++ b/sys/dev/pci/tga.c Mon Sep 16 16:40:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.43 2002/09/16 16:33:13 mycroft Exp $ */
+/* $NetBSD: tga.c,v 1.44 2002/09/16 16:40:57 mycroft Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.43 2002/09/16 16:33:13 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.44 2002/09/16 16:40:57 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1091,11 +1091,11 @@
yinc = ydir * dst->ri_stride;
wb = w * (dst->ri_depth / 8);
- if (sx >= dx) { /* moving to the left */
+ if (sx >= dx || (sx + w) <= dx) { /* copy forwards */
xstart = 0;
xend = wb;
xdir = 1;
- } else { /* moving to the right */
+ } else { /* copy backwards */
xstart = wb;
xend = 0;
xdir = -1;
Home |
Main Index |
Thread Index |
Old Index