summaryrefslogtreecommitdiffstats
path: root/clock.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-11 14:13:52 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-11 14:13:52 +0000
commit0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523 (patch)
tree91a9f9bb7432bfaeb28b0be6c5280582b045181d /clock.c
parentf0cb57d8ac1a342c862320e30728ae2c1ea556aa (diff)
Sync OpenBSD patchset 322:
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clock.c b/clock.c
index 50d48bed..45426828 100644
--- a/clock.c
+++ b/clock.c
@@ -1,4 +1,4 @@
-/* $Id: clock.c,v 1.6 2009-08-26 22:12:21 tcunha Exp $ */
+/* $Id: clock.c,v 1.7 2009-09-11 14:13:52 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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';