Module Name: src Committed By: rin Date: Fri Jul 26 02:31:09 UTC 2019
Modified Files: src/sys/dev/rasops: rasops_putchar_width.h Log Message: XXX Add hack so that colorbars(6) works for 24-bpp. The code before factorization did the same in a strange way. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/rasops/rasops_putchar_width.h 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_putchar_width.h diff -u src/sys/dev/rasops/rasops_putchar_width.h:1.1 src/sys/dev/rasops/rasops_putchar_width.h:1.2 --- src/sys/dev/rasops/rasops_putchar_width.h:1.1 Thu Jul 25 15:18:54 2019 +++ src/sys/dev/rasops/rasops_putchar_width.h Fri Jul 26 02:31:09 2019 @@ -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 @@ PUTCHAR_WIDTH(RASOPS_DEPTH, RASOPS_WIDTH height = font->fontheight; +#if RASOPS_DEPTH != 24 /* XXXRO fix me! */ if (uc == ' ') { while (height--) { SUBST_STAMP(rp, stamp[0]); @@ -222,7 +223,9 @@ PUTCHAR_WIDTH(RASOPS_DEPTH, RASOPS_WIDTH DELTA(hrp, ri->ri_stride, uint32_t *); } } - } else { + } else +#endif + { fr = FONT_GLYPH(uc, font, ri); fs = font->stride;