diff options
author | nicm <nicm> | 2016-07-15 00:42:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-07-15 00:42:56 +0000 |
commit | 1fd6ca2260bc738f1e467e7e32d03cc225327ebf (patch) | |
tree | 146bb1ffb4a0d26401918adb5ffd737c3b218a6f /screen-redraw.c | |
parent | fc118e13a9af1e54a6d95a50ef4dca6de25bab02 (diff) | |
download | rtmux-1fd6ca2260bc738f1e467e7e32d03cc225327ebf.tar.gz rtmux-1fd6ca2260bc738f1e467e7e32d03cc225327ebf.tar.bz2 rtmux-1fd6ca2260bc738f1e467e7e32d03cc225327ebf.zip |
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.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |