the 8x16 font showed horizontally flipped characters, but as it turns
out the issue is that with 8-bit wide fonts we use optimized rasops
code that apparently writes out the character with reversed bitorder.
-/* $OpenBSD: ssdfb.c,v 1.1 2018/07/30 08:14:45 patrick Exp $ */
+/* $OpenBSD: ssdfb.c,v 1.2 2018/07/31 12:41:57 patrick Exp $ */
/*
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
*
for (k = 0; k < 8; k++) {
off = ri->ri_stride * (i + k) + j / 8;
val = *(ri->ri_bits + off);
- val &= (1 << (8 - (j % 8)));
+ val &= (1 << (j % 8));
*bit |= !!val << k;
}
}