X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplanar.c;h=3fd1c5ed2b25b85ac5a5849bf9d282ea2d010cf2;hb=9b04963a6305b545154a2e962e89e7a80de28752;hp=41a3182e4bf062f6eddb39a768c4e1fd19c92f59;hpb=b4b0b1050a3f3d2e2d9f71a42520bb84bff86a43;p=16.git diff --git a/src/lib/planar.c b/src/lib/planar.c index 41a3182e..3fd1c5ed 100755 --- a/src/lib/planar.c +++ b/src/lib/planar.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -22,7 +22,10 @@ /* * Implimentation of the planar buffer files. */ +#include #include +#include + #include "src/lib/planar.h" /* creates a planar buffer from the bitmap data. @@ -84,7 +87,7 @@ planar_buf_alloc(word width, word height) { /* allocate the planes */ for(i=0; i<4; i++) { - p->plane[i] = malloc(p->height * p->pwidth); + p->plane[i] = malloc(p->height * p->pwidth); } return p;