Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rasops fix a bunch of typos, now 8 bit fonts work pr...
details: https://anonhg.NetBSD.org/src/rev/f15652b7d8c4
branches: trunk
changeset: 753910:f15652b7d8c4
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Apr 13 20:10:38 2010 +0000
description:
fix a bunch of typos, now 8 bit fonts work properly
diffstat:
sys/dev/rasops/rasops1.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r bb3b24159a0c -r f15652b7d8c4 sys/dev/rasops/rasops1.c
--- a/sys/dev/rasops/rasops1.c Tue Apr 13 18:33:44 2010 +0000
+++ b/sys/dev/rasops/rasops1.c Tue Apr 13 20:10:38 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops1.c,v 1.21 2010/04/08 16:45:53 macallan Exp $ */
+/* $NetBSD: rasops1.c,v 1.22 2010/04/13 20:10:38 macallan Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops1.c,v 1.21 2010/04/08 16:45:53 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops1.c,v 1.22 2010/04/13 20:10:38 macallan Exp $");
#include "opt_rasops.h"
@@ -297,7 +297,7 @@
rp = ri->ri_bits + row * ri->ri_yscale + col * ri->ri_xscale;
if (ri->ri_hwbits)
- hrp = ri->ri_bits + row * ri->ri_yscale + col * ri->ri_xscale;
+ hrp = ri->ri_hwbits + row * ri->ri_yscale + col * ri->ri_xscale;
height = ri->ri_font->fontheight;
rs = ri->ri_stride;
@@ -346,10 +346,12 @@
}
/* Do underline */
- if ((attr & 1) != 0)
+ if ((attr & 1) != 0) {
rp[-(ri->ri_stride << 1)] = fg;
- if (ri->ri_hwbits)
- hrp[-(ri->ri_stride << 1)] = fg;
+ if (ri->ri_hwbits) {
+ hrp[-(ri->ri_stride << 1)] = fg;
+ }
+ }
}
/*
Home |
Main Index |
Thread Index |
Old Index