From 1fd6ca2260bc738f1e467e7e32d03cc225327ebf Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 15 Jul 2016 00:42:56 +0000 Subject: Instead of representing colours in several different forms with various cell flags, convert to use an int with flags marking 256 or RGB colours in the top byte (except in cells, which we don't want to make any bigger). From Brad Town. --- screen-redraw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'screen-redraw.c') diff --git a/screen-redraw.c b/screen-redraw.c index 694f6c27..4c402ff2 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -552,9 +552,9 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp, u_int top) memcpy(&gc, &grid_default_cell, sizeof gc); if (w->active == wp) - colour_set_bg(&gc, active_colour); + gc.bg = active_colour; else - colour_set_bg(&gc, colour); + gc.bg = colour; tty_attributes(tty, &gc, wp); for (ptr = buf; *ptr != '\0'; ptr++) { if (*ptr < '0' || *ptr > '9') @@ -579,9 +579,9 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp, u_int top) draw_text: memcpy(&gc, &grid_default_cell, sizeof gc); if (w->active == wp) - colour_set_fg(&gc, active_colour); + gc.fg = active_colour; else - colour_set_fg(&gc, colour); + gc.fg = colour; tty_attributes(tty, &gc, wp); tty_puts(tty, buf); -- cgit