From a6299ec2a0efe694b841ab2ac9c7ffe3c0110414 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Sun, 18 Feb 2024 10:39:13 -0500 Subject: [PATCH] Framebuffer/DRM : with eight-bit graphics, remap 'default' color to zero for the background. (If the foreground is default, it'll get remapped to white automatically.) --- fb/pdcdisp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fb/pdcdisp.c b/fb/pdcdisp.c index e8f803f5..a66a5251 100644 --- a/fb/pdcdisp.c +++ b/fb/pdcdisp.c @@ -421,6 +421,8 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp) integer_fg_idx = integer_bg_idx; integer_bg_idx = swapval; } + if( integer_bg_idx == -1) + integer_bg_idx = 0; fg_idx = (uint8_t)integer_fg_idx; bg_idx = (uint8_t)integer_bg_idx; for( i = 0; i < run_len; i++)