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 /dblbuf.h | |
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 'dblbuf.h')
-rw-r--r-- | dblbuf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ struct slice { int y; - unsigned char *colors; + unsigned long *colors; unsigned char *bitmap; }; @@ -23,7 +23,7 @@ struct dblbuf }; #define SLICE_BUF_SIZE(w, h, cs, ch) \ - ( (h)*(sizeof(struct slice) + (w)*(1 + (cs)*(ch))) ) + ( (h)*(sizeof(struct slice) + (w)*(2*sizeof(long) + (cs)*(ch))) ) struct slice *dblbuf_setup_buf(int, int, int, int, unsigned char *); |