Skip to content

Commit

Permalink
Framebuffer/DRM : with eight-bit graphics, remap 'default' color to z…
Browse files Browse the repository at this point in the history
…ero for the background. (If the foreground is default, it'll get remapped to white automatically.)
  • Loading branch information
Bill-Gray committed Feb 18, 2024
1 parent e69b42c commit a6299ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fb/pdcdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit a6299ec

Please sign in to comment.