1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Do not assume that bit 0x80 enables blink, rather call set_blink when

blink is requested.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4686 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-01-24 13:39:17 +00:00 committed by exg
parent fab544bdbe
commit 3e5ad97676

View File

@ -322,10 +322,10 @@ void term_set_color(TERM_WINDOW *window, int col)
}
/* set background color */
if (col & ATTR_BLINK)
col |= 0x80;
else if (col & 0x80)
if (col & 0x80)
col |= ATTR_BLINK;
if (col & ATTR_BLINK)
current_term->set_blink(current_term);
if ((col & 0xf0) >> 4 != last_bg &&
((col & 0xf0) != 0 || (col & ATTR_RESETBG) == 0)) {