Don't apply bold/faint to bg console

This commit is contained in:
Michael Theall 2022-01-07 17:41:19 -06:00
parent 32370bd19c
commit 0359dfb19d
2 changed files with 1 additions and 15 deletions

View File

@ -529,14 +529,6 @@ static ssize_t con_write(struct _reent *r,void *fd,const char *ptr, size_t len)
else else
currentConsole->flags &= ~CONSOLE_BG_CUSTOM; currentConsole->flags &= ~CONSOLE_BG_CUSTOM;
if (!custom && currentConsole->bg < 16) {
currentConsole->flags &= ~CONSOLE_COLOR_FAINT;
if (currentConsole->bg < 8)
currentConsole->flags &= ~CONSOLE_COLOR_BOLD;
else
currentConsole->flags |= CONSOLE_COLOR_BOLD;
}
// consume next ; or m // consume next ; or m
++escapeseq; ++escapeseq;
--escapelen; --escapelen;

View File

@ -123,13 +123,7 @@ static void ConsoleSwRenderer_drawChar(PrintConsole* con, int x, int y, int c)
} }
if (!(con->flags & CONSOLE_BG_CUSTOM)) { if (!(con->flags & CONSOLE_BG_CUSTOM)) {
if (con->flags & CONSOLE_COLOR_BOLD) { bg = colorTable[bg];
bg = colorTable[bg + 8];
} else if (con->flags & CONSOLE_COLOR_FAINT) {
bg = colorTable[bg + 16];
} else {
bg = colorTable[bg];
}
} }
if (con->flags & CONSOLE_COLOR_REVERSE) { if (con->flags & CONSOLE_COLOR_REVERSE) {