From: patrick Date: Tue, 31 Jul 2018 12:41:57 +0000 (+0000) Subject: Stop reversing bytes read from the framebuffer. That was added since X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f6d0c970b1a357e23340b012681a9a9106d1ce64;p=openbsd 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. --- 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; } }