1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[screen] Longer initializer

This commit is contained in:
Witold Filipczyk 2022-01-28 17:57:44 +01:00
parent 65e74dc39d
commit 7ea1e0b80a

View File

@ -977,7 +977,7 @@ add_char16(struct string *screen, struct screen_driver *driver,
* - COLOR_MODE_16. Use 16 colors. * - COLOR_MODE_16. Use 16 colors.
* - An unsupported color mode. Use 16 colors. */ * - An unsupported color mode. Use 16 colors. */
if (driver->opt.color_mode != COLOR_MODE_MONO) { if (driver->opt.color_mode != COLOR_MODE_MONO) {
char code[6] = ";30;40"; char code[] = ";30;40";
unsigned char bgcolor = TERM_COLOR_BACKGROUND_16(ch->c.color); unsigned char bgcolor = TERM_COLOR_BACKGROUND_16(ch->c.color);
code[2] += TERM_COLOR_FOREGROUND_16(ch->c.color); code[2] += TERM_COLOR_FOREGROUND_16(ch->c.color);