1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

- fix for 0 sized gif images too

- fixed wrong test for 0 size in nxpm.c
This commit is contained in:
dan
2002-10-25 04:21:09 +00:00
parent 0f0afc48ab
commit 3af4aa7846
4 changed files with 13 additions and 7 deletions

View File

@@ -81,10 +81,10 @@ RLoadTIFF(RContext *context, char *file, int index)
TIFFClose(tif);
return NULL;
}
/* read data */
ptr = data = (uint32*)_TIFFmalloc(width * height * sizeof(uint32));
if (!data) {
RErrorCode = RERR_NOMEMORY;
} else {