summaryrefslogtreecommitdiffstats
path: root/clock.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-10 17:16:24 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-10 17:16:24 +0000
commit372a8cb1d9c4306f74b592660b4ce394dff3e31d (patch)
treef1f14875c69932859e6d65365a4742a6ee095652 /clock.c
parent3f3b01c7ce503d98ab649fa4aecde741ce63cec0 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clock.c b/clock.c
index 4cd8a8a7..5711b441 100644
--- a/clock.c
+++ b/clock.c
@@ -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';