Skip to content

Commit

Permalink
Merge pull request irssi#711 from ailin-nemui/24bit-reset
Browse files Browse the repository at this point in the history
do not reset true colour bit on colour reset
(cherry picked from commit 2d0a9b4)
  • Loading branch information
ailin-nemui authored and Ailin Nemui committed Jun 5, 2017
1 parent 18df093 commit 712e029
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/fe-text/textbuffer-view.c
Expand Up @@ -114,7 +114,6 @@ static void update_cmd_color(unsigned char cmd, int *color)
if (cmd & LINE_COLOR_BG) {
/* set background color */
*color &= FGATTR;
*color &= ~ATTR_FGCOLOR24;
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= (cmd & 0x0f) << BG_SHIFT;
else {
Expand All @@ -123,7 +122,6 @@ static void update_cmd_color(unsigned char cmd, int *color)
} else {
/* set foreground color */
*color &= BGATTR;
*color &= ~ATTR_BGCOLOR24;
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= cmd & 0x0f;
else {
Expand Down

0 comments on commit 712e029

Please sign in to comment.