From 8b23f31ef70b7030cdb466d79fd367b616bfc7ea Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 15 May 2018 17:03:11 +0900 Subject: [PATCH] Background shouldn't be premultiplied in terminal cells --- apps/terminal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/terminal.c b/apps/terminal.c index 26340364..720256a9 100644 --- a/apps/terminal.c +++ b/apps/terminal.c @@ -587,10 +587,10 @@ term_write_char( char tmp[2] = {val,0}; for (uint8_t i = 0; i < char_height; ++i) { for (uint8_t j = 0; j < char_width; ++j) { - term_set_point(x+j,y+i,premultiply(_bg)); + term_set_point(x+j,y+i,_bg); } } - if (val != 0 && val != ' ') { + if (val != 0 && val != ' ' && _fg != _bg) { int _font = SDF_FONT_MONO; if (flags & ANSI_BOLD && flags & ANSI_ITALIC) { _font = SDF_FONT_MONO_BOLD_OBLIQUE;