summaryrefslogtreecommitdiff
path: root/refresh.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-03 05:28:28 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-03 05:28:28 +0000
commitc5f4506b9a65948f8385113718493a86d970e8fe (patch)
treeab2e4180f429a89f94455b0d780588e36569df63 /refresh.c
parent7197e4e7d54104233ca1b6881a8e19e1f49ab104 (diff)
downloaduuterm-c5f4506b9a65948f8385113718493a86d970e8fe.tar.gz
rework the dblbuf framebuffer module's blutter heavily, based on work
by loren merritt. roughly 3-4 times as fast as the old code with slightly increased memory usage. still only supports 8bpp and font width of 8, for now, but the new design is more easily extended to 16bpp and 32bpp than the old one.
Diffstat (limited to 'refresh.c')
-rw-r--r--refresh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refresh.c b/refresh.c
index b1766d2..6b24dbe 100644
--- a/refresh.c
+++ b/refresh.c
@@ -37,7 +37,7 @@ void uuterm_refresh_row(struct uudisp *d, struct uurow *row, int x1, int x2)
extract_cell(ch[(x+1)&3], &row->cells[x+1]);
for (i=0; i<sizeof(ch[0]) && ch[x&3][i]; i++) {
const void *glyph = lookup_glyph(ch[x&3], i, ch[(x+3)&3], ch[(x+1)&3]);
- uudisp_draw_glyph(d, row->idx, x, glyph, row->cells[x].a);
+ uudisp_draw_glyph(d, row->idx, x, glyph, row->cells[x].a & 0xff);
}
}
}