summaryrefslogtreecommitdiff
path: root/dblbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'dblbuf.c')
-rw-r--r--dblbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dblbuf.c b/dblbuf.c
index 32ff996..18e2cd5 100644
--- a/dblbuf.c
+++ b/dblbuf.c
@@ -117,8 +117,8 @@ void uudisp_predraw_cell(struct uudisp *d, int idx, int x, int color)
{
struct dblbuf *b = (void *)&d->priv;
- b->slices[idx].colors[2*x] = expand_color(d, color&15);
- b->slices[idx].colors[2*x+1] = expand_color(d, color>>4) ^ b->slices[idx].colors[2*x];
+ b->slices[idx].colors[2*x] = expand_color(d, color&255);
+ b->slices[idx].colors[2*x+1] = expand_color(d, color>>8) ^ b->slices[idx].colors[2*x];
}
void uudisp_draw_glyph(struct uudisp *d, int idx, int x, const void *glyph)