mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Don't apply bold/faint to bg console
This commit is contained in:
parent
32370bd19c
commit
6d8d9fd2fc
@ -529,14 +529,6 @@ static ssize_t con_write(struct _reent *r,void *fd,const char *ptr, size_t len)
|
||||
else
|
||||
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
|
||||
++escapeseq;
|
||||
--escapelen;
|
||||
|
@ -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_COLOR_BOLD) {
|
||||
bg = colorTable[bg + 8];
|
||||
} else if (con->flags & CONSOLE_COLOR_FAINT) {
|
||||
bg = colorTable[bg + 16];
|
||||
} else {
|
||||
bg = colorTable[bg];
|
||||
}
|
||||
bg = colorTable[bg];
|
||||
}
|
||||
|
||||
if (con->flags & CONSOLE_COLOR_REVERSE) {
|
||||
|
Loading…
Reference in New Issue
Block a user