mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Don't apply bold/faint to bg console
This commit is contained in:
parent
32370bd19c
commit
0359dfb19d
@ -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;
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user