Module Name: src Committed By: jmcneill Date: Fri Dec 30 09:31:44 UTC 2011
Modified Files: src/sys/arch/usermode/dev: vncfb.c Log Message: take nrows into account when calculating the update rectangle in vncfb_copyrows To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/dev/vncfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/dev/vncfb.c diff -u src/sys/arch/usermode/dev/vncfb.c:1.2 src/sys/arch/usermode/dev/vncfb.c:1.3 --- src/sys/arch/usermode/dev/vncfb.c:1.2 Fri Dec 30 08:49:53 2011 +++ src/sys/arch/usermode/dev/vncfb.c Fri Dec 30 09:31:44 2011 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ vncfb_copyrows(void *priv, int srcrow, i 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);