From f6d0c970b1a357e23340b012681a9a9106d1ce64 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 31 Jul 2018 12:41:57 +0000 Subject: [PATCH] Stop reversing bytes read from the framebuffer. That was added since 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. --- sys/dev/fdt/ssdfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/ssdfb.c b/sys/dev/fdt/ssdfb.c index 69ee603cf9b..391769cdbb9 100644 --- a/sys/dev/fdt/ssdfb.c +++ b/sys/dev/fdt/ssdfb.c @@ -1,4 +1,4 @@ -/* $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 * @@ -302,7 +302,7 @@ ssdfb_update(void *v) 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; } } -- 2.20.1