From 5038fb3bc1f9d9133ef296e1ca52e75ec4733f46 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 Jan 2017 11:20:46 +0000 Subject: [PATCH] Build tools: Fix build of generateicon. git-svn-id: https://svn.eduke32.com/eduke32@6036 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/util/generateicon.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/polymer/eduke32/build/src/util/generateicon.c b/polymer/eduke32/build/src/util/generateicon.c index 39810cb0c..e3702ae7b 100644 --- a/polymer/eduke32/build/src/util/generateicon.c +++ b/polymer/eduke32/build/src/util/generateicon.c @@ -53,7 +53,6 @@ int writeicon(FILE *fp, struct icon *ico) int main(int argc, char **argv) { struct icon icon; - int32_t bpl = 0; int i; unsigned char *maskp, bm, *pp; @@ -64,18 +63,12 @@ int main(int argc, char **argv) memset(&icon, 0, sizeof(icon)); - kpzload(argv[1], (intptr_t*)&icon.pixels, (int32_t*)&bpl, (int32_t*)&icon.width, (int32_t*)&icon.height); + kpzload(argv[1], (intptr_t*)&icon.pixels, &icon.width, &icon.height); if (!icon.pixels) { Bfprintf(stderr, "Failure loading %s\n", argv[1]); return 1; } - if (bpl != icon.width * 4) { - Bfprintf(stderr, "bpl != icon.width * 4\n"); - Bfree(icon.pixels); - return 1; - } - icon.mask = (unsigned char *)Bcalloc(icon.height, (icon.width+7)/8); if (!icon.mask) { Bfprintf(stderr, "Out of memory\n");