Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Put underline properly (not upperline) on CCW...



details:   https://anonhg.NetBSD.org/src/rev/5c0b97860633
branches:  trunk
changeset: 755625:5c0b97860633
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 13 01:55:24 2010 +0000

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

diffstat:

 sys/dev/rasops/rasops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r faeec55d4571 -r 5c0b97860633 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Sat Jun 12 23:16:02 2010 +0000
+++ b/sys/dev/rasops/rasops.c   Sun Jun 13 01:55:24 2010 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index