Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix thinko in downward scrolling ( never had a c...



details:   https://anonhg.NetBSD.org/src/rev/d87751b56a24
branches:  trunk
changeset: 768993:d87751b56a24
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Aug 30 01:21:03 2011 +0000

description:
fix thinko in downward scrolling ( never had a chance to test it until now... )

diffstat:

 sys/dev/pci/voyagerfb.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r fc87e8f7125c -r d87751b56a24 sys/dev/pci/voyagerfb.c
--- a/sys/dev/pci/voyagerfb.c   Mon Aug 29 22:46:56 2011 +0000
+++ b/sys/dev/pci/voyagerfb.c   Tue Aug 30 01:21:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: voyagerfb.c,v 1.7 2011/01/22 15:14:28 cegger Exp $     */
+/*     $NetBSD: voyagerfb.c,v 1.8 2011/08/30 01:21:03 macallan Exp $   */
 
 /*
  * Copyright (c) 2009 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.7 2011/01/22 15:14:28 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.8 2011/08/30 01:21:03 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -795,11 +795,13 @@
                         * to copy line by line here
                         * should probably use a command sequence
                         */
+                       ys += (height - ri->ri_font->fontheight);
+                       yd += (height - ri->ri_font->fontheight);
                        for (i = 0; i < nrows; i++) {
                                voyagerfb_bitblt(sc, x, ys, x, yd, width, 
                                    ri->ri_font->fontheight, ROP_COPY);
-                               ys += ri->ri_font->fontheight;
-                               yd += ri->ri_font->fontheight;
+                               ys -= ri->ri_font->fontheight;
+                               yd -= ri->ri_font->fontheight;
                        }
                } else
                        voyagerfb_bitblt(sc, x, ys, x, yd, width, height, 



Home | Main Index | Thread Index | Old Index