diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-09-10 17:16:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-09-10 17:16:24 +0000 |
commit | 372a8cb1d9c4306f74b592660b4ce394dff3e31d (patch) | |
tree | f1f14875c69932859e6d65365a4742a6ee095652 /clock.c | |
parent | 3f3b01c7ce503d98ab649fa4aecde741ce63cec0 (diff) | |
download | rtmux-372a8cb1d9c4306f74b592660b4ce394dff3e31d.tar.gz rtmux-372a8cb1d9c4306f74b592660b4ce394dff3e31d.tar.bz2 rtmux-372a8cb1d9c4306f74b592660b4ce394dff3e31d.zip |
Permit options such as status-bg to be configured using the entire 256 colour
palette by setting "colour0" to "colour255".
Diffstat (limited to 'clock.c')
-rw-r--r-- | clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,7 +120,7 @@ clock_draw(struct screen_write_ctx *ctx, u_int colour, int style) screen_write_cursormove(ctx, x, y); memcpy(&gc, &grid_default_cell, sizeof gc); - gc.fg = colour; + colour_set_fg(&gc, colour); screen_write_puts(ctx, &gc, "%s", tim); } return; @@ -130,7 +130,7 @@ clock_draw(struct screen_write_ctx *ctx, u_int colour, int style) y = (screen_size_y(s) / 2) - 3; memcpy(&gc, &grid_default_cell, sizeof gc); - gc.bg = colour; + colour_set_bg(&gc, colour); for (ptr = tim; *ptr != '\0'; ptr++) { if (*ptr >= '0' && *ptr <= '9') idx = *ptr - '0'; |