diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-03 05:28:28 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-03 05:28:28 +0000 |
commit | c5f4506b9a65948f8385113718493a86d970e8fe (patch) | |
tree | ab2e4180f429a89f94455b0d780588e36569df63 /refresh.c | |
parent | 7197e4e7d54104233ca1b6881a8e19e1f49ab104 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } } |