diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-12 15:56:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-12 17:08:27 +0100 |
commit | 391abd1a8edc6103ee2007d8eff510102ea932ca (patch) | |
tree | 403864b9f2f801283efedcc3d33d0694a1e58bfe /maze-demo.c | |
parent | 2e769723623ef1b7c5cd673ee1fb701d45505bab (diff) |
Add a skia demo backend
Note that this then requires us to be C++ clean.
Diffstat (limited to 'maze-demo.c')
-rw-r--r-- | maze-demo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maze-demo.c b/maze-demo.c index e6b51b7..c6e7286 100644 --- a/maze-demo.c +++ b/maze-demo.c @@ -216,7 +216,7 @@ static void maze_create(void) int i, h2 = 2 * h + 2, w2 = 2 * w + 2; uint8_t **p; - p = calloc(sizeof(uint8_t*) * (h2 + 2) + w2 * h2 + 1, 1); + p = (uint8_t **)calloc(sizeof(uint8_t*) * (h2 + 2) + w2 * h2 + 1, 1); p[1] = (uint8_t*)(p + h2 + 2) + 1; each(i, 2, h2) p[i] = p[i-1] + w2; |