From c5f4506b9a65948f8385113718493a86d970e8fe Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 3 Oct 2006 05:28:28 +0000 Subject: 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. --- dblbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dblbuf.h') diff --git a/dblbuf.h b/dblbuf.h index aa2dc47..cb57696 100644 --- a/dblbuf.h +++ b/dblbuf.h @@ -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 *); -- cgit v1.2.3