mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Using blinking/bright background colors would crash irssi..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@619 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2e64899f18
commit
08c6484b6b
4 changed files with 17 additions and 2 deletions
|
|
@ -298,6 +298,9 @@ static LINE_CACHE_REC *gui_window_line_cache(GUI_WINDOW_REC *gui, LINE_REC *line
|
|||
color &= 0xfff0;
|
||||
color |= 8|ATTR_COLOR8;
|
||||
break;
|
||||
case LINE_CMD_BLINK:
|
||||
color |= 0x80;
|
||||
break;
|
||||
case LINE_CMD_INDENT:
|
||||
/* set indentation position here - don't do
|
||||
it if we're too close to right border */
|
||||
|
|
@ -429,6 +432,9 @@ static void single_line_draw(GUI_WINDOW_REC *gui, int ypos, LINE_CACHE_SUB_REC *
|
|||
color &= 0xfff0;
|
||||
color |= 8|ATTR_COLOR8;
|
||||
break;
|
||||
case LINE_CMD_BLINK:
|
||||
color |= 0x80;
|
||||
break;
|
||||
}
|
||||
set_color(cwin, color);
|
||||
text++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue