Module Name:    src
Committed By:   tsutsui
Date:           Sun Jun 13 01:55:24 UTC 2010

Modified Files:
        src/sys/dev/rasops: rasops.c

Log Message:
Put underline properly (not upperline) on CCW screen.
Tested on hpcarm WS003SH.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/rasops/rasops.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/dev/rasops/rasops.c
diff -u src/sys/dev/rasops/rasops.c:1.64 src/sys/dev/rasops/rasops.c:1.65
--- src/sys/dev/rasops/rasops.c:1.64	Thu May  6 04:30:18 2010
+++ src/sys/dev/rasops/rasops.c	Sun Jun 13 01:55:24 2010
@@ -1,4 +1,4 @@
-/*	 $NetBSD: rasops.c,v 1.64 2010/05/06 04:30:18 macallan Exp $	*/
+/*	 $NetBSD: rasops.c,v 1.65 2010/06/13 01:55:24 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.64 2010/05/06 04:30:18 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.65 2010/06/13 01:55:24 tsutsui Exp $");
 
 #include "opt_rasops.h"
 #include "rasops_glue.h"
@@ -1456,7 +1456,8 @@
 
 	/* Do rotated underline */
 	rp = ri->ri_bits + (ri->ri_cols - col - 1) * ri->ri_yscale +
-	    row * ri->ri_xscale;
+	    row * ri->ri_xscale +
+	    (ri->ri_font->fontwidth - 1) * ri->ri_pelbytes;
 	height = ri->ri_font->fontheight;
 
 	/* XXX this assumes 16-bit color depth */

Reply via email to