summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlib.c b/xlib.c
index 3bbd41f..84dc0d7 100644
--- a/xlib.c
+++ b/xlib.c
@@ -326,6 +326,7 @@ void uudisp_predraw_cell(struct uudisp *d, int idx, int x, int color)
if (x != p->x2+1 || x-p->x1 >= 80 || color != p->color) {
commit_cells(d, idx);
p->x1 = x;
+ p->color = color;
XSetForeground(p->display, p->gc, p->colors[color&15]);
XSetBackground(p->display, p->gc, p->colors[color>>4]);
}