SDL2: Properly print white bold text to the screen

This commit is contained in:
Cacodemon345 2021-08-04 23:11:50 +06:00 committed by alexey.lysiuk
parent 28f2d36732
commit a067466dd8

View file

@ -204,7 +204,7 @@ void I_PrintStr(const char *cp)
{ // gray { // gray
if (v < 0.33) attrib = 0x8; if (v < 0.33) attrib = 0x8;
else if (v < 0.90) attrib = 0x7; else if (v < 0.90) attrib = 0x7;
else attrib = 0x15; else attrib = 0xF;
} }
printData.AppendFormat("\033[%um",((attrib & 0x8) ? 90 : 30) + (attrib & 0x7)); printData.AppendFormat("\033[%um",((attrib & 0x8) ? 90 : 30) + (attrib & 0x7));