diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-08-26 16:16:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-08-26 16:16:07 +0000 |
commit | 5ca4e9dad73fac8f86ce7cff72c25bcc0ff595dc (patch) | |
tree | b744b2e26c78a1f49c8b60fe4bb6e153a0c98bf2 /usr.bin/tmux | |
parent | add8033d8487430a9e39077eb86fb7f65400294c (diff) |
Fix clock mode in black and white terminals now that tty.c tries to fix
reverse.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/clock.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/tmux/clock.c b/usr.bin/tmux/clock.c index 9f13d42bb19..d7a42bf4ece 100644 --- a/usr.bin/tmux/clock.c +++ b/usr.bin/tmux/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ +/* $OpenBSD: clock.c,v 1.2 2009/08/26 16:16:06 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -113,7 +113,7 @@ clock_draw(struct screen_write_ctx *ctx, u_int colour, int style) screen_write_clearscreen(ctx); memcpy(&gc, &grid_default_cell, sizeof gc); - gc.fg = colour; + gc.bg = colour; if (screen_size_x(s) < 6 * strlen(tim) || screen_size_y(s) < 6) { if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) { @@ -147,13 +147,10 @@ clock_draw(struct screen_write_ctx *ctx, u_int colour, int style) } for (j = 0; j < 5; j++) { - screen_write_cursormove(ctx, x, y + j); for (i = 0; i < 5; i++) { + screen_write_cursormove(ctx, x + i, y + j); if (clock_table[idx][j][i]) - gc.attr |= GRID_ATTR_REVERSE; - else - gc.attr &= ~GRID_ATTR_REVERSE; - screen_write_putc(ctx, &gc, ' '); + screen_write_putc(ctx, &gc, ' '); } } x += 6; |