summaryrefslogtreecommitdiff
path: root/dblbuf.h
diff options
context:
space:
mode:
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 *);