summaryrefslogtreecommitdiff
path: root/dblbuf.h
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 /dblbuf.h
parent7197e4e7d54104233ca1b6881a8e19e1f49ab104 (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.h4
1 files changed, 2 insertions, 2 deletions
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 *);