Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/dev take nrows into account when calculati...



details:   https://anonhg.NetBSD.org/src/rev/2d253bc15c13
branches:  trunk
changeset: 772329:2d253bc15c13
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Dec 30 09:31:44 2011 +0000

description:
take nrows into account when calculating the update rectangle in vncfb_copyrows

diffstat:

 sys/arch/usermode/dev/vncfb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 3cf70eae8155 -r 2d253bc15c13 sys/arch/usermode/dev/vncfb.c
--- a/sys/arch/usermode/dev/vncfb.c     Fri Dec 30 08:49:53 2011 +0000
+++ b/sys/arch/usermode/dev/vncfb.c     Fri Dec 30 09:31:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vncfb.c,v 1.2 2011/12/30 08:49:53 jmcneill Exp $ */
+/* $NetBSD: vncfb.c,v 1.3 2011/12/30 09:31:44 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -35,7 +35,7 @@
 #include "opt_wsemul.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.2 2011/12/30 08:49:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.3 2011/12/30 09:31:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -359,10 +359,10 @@
        w = ri->ri_width;
        if (srcrow < dstrow) {
                y = ri->ri_yorigin + (srcrow * ri->ri_font->fontheight);
-               h = (dstrow - srcrow) * ri->ri_font->fontheight;
+               h = (nrows + (dstrow - srcrow)) * ri->ri_font->fontheight;
        } else {
                y = ri->ri_yorigin + (dstrow * ri->ri_font->fontheight);
-               h = (srcrow - dstrow) * ri->ri_font->fontheight;
+               h = (nrows + (srcrow - dstrow)) * ri->ri_font->fontheight;
        }
 
        vncfb_update(sc, x, y, w, h);



Home | Main Index | Thread Index | Old Index