Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rasops XXX
details: https://anonhg.NetBSD.org/src/rev/f87025672c0f
branches: trunk
changeset: 842858:f87025672c0f
user: rin <rin%NetBSD.org@localhost>
date: Fri Jul 26 02:31:09 2019 +0000
description:
XXX
Add hack so that colorbars(6) works for 24-bpp.
The code before factorization did the same in a strange way.
diffstat:
sys/dev/rasops/rasops_putchar_width.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 484cd32ecb8d -r f87025672c0f sys/dev/rasops/rasops_putchar_width.h
--- a/sys/dev/rasops/rasops_putchar_width.h Thu Jul 25 20:27:45 2019 +0000
+++ b/sys/dev/rasops/rasops_putchar_width.h Fri Jul 26 02:31:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops_putchar_width.h,v 1.1 2019/07/25 15:18:54 rin Exp $ */
+/* $NetBSD: rasops_putchar_width.h,v 1.2 2019/07/26 02:31:09 rin Exp $ */
/* NetBSD: rasops8.c,v 1.41 2019/07/25 03:02:44 rin Exp */
/*-
@@ -213,6 +213,7 @@
height = font->fontheight;
+#if RASOPS_DEPTH != 24 /* XXXRO fix me! */
if (uc == ' ') {
while (height--) {
SUBST_STAMP(rp, stamp[0]);
@@ -222,7 +223,9 @@
DELTA(hrp, ri->ri_stride, uint32_t *);
}
}
- } else {
+ } else
+#endif
+ {
fr = FONT_GLYPH(uc, font, ri);
fs = font->stride;
Home |
Main Index |
Thread Index |
Old Index