Hi tech@,
Fix underline rotation on CCW (quarter counter-clockwise) rotated
screens.
Currently, the "underline" is actually drawn above text.
Comments? OK?
Index: sys/dev/rasops/rasops.c
===================================================================
RCS file: /cvs/src/sys/dev/rasops/rasops.c,v
retrieving revision 1.49
diff -u -p -r1.49 rasops.c
--- sys/dev/rasops/rasops.c 23 Dec 2017 10:30:25 -0000 1.49
+++ sys/dev/rasops/rasops.c 17 Jan 2018 17:35:49 -0000
@@ -1247,6 +1247,8 @@ rasops_putchar_rotated(void *cookie, int
/* Do rotated underline */
rp = ri->ri_bits + col * ri->ri_yscale + row * ri->ri_xscale;
+ if (ri->ri_flg & RI_ROTATE_CCW)
+ rp += (ri->ri_font->fontwidth - 1) * ri->ri_pelbytes;
height = ri->ri_font->fontheight;
/* XXX this assumes 16-bit color depth */