Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 910:43a71b097f17
10L.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 23 Feb 2015 22:54:25 +0200 |
parents | be5d276f8a6c |
children | 602b4aa34293 |
comparison
equal
deleted
inserted
replaced
909:be5d276f8a6c | 910:43a71b097f17 |
---|---|
1323 multicolor)) | 1323 multicolor)) |
1324 { | 1324 { |
1325 ret = DMERR_DATA_ERROR; | 1325 ret = DMERR_DATA_ERROR; |
1326 goto error; | 1326 goto error; |
1327 } | 1327 } |
1328 break; | |
1328 } | 1329 } |
1329 | 1330 |
1330 if (!dm_fwrite_str(outFile, buf, outBufSize)) | 1331 if (!dm_fwrite_str(outFile, buf, outBufSize)) |
1331 { | 1332 { |
1332 ret = dmGetErrno(); | 1333 ret = dmGetErrno(); |
1342 | 1343 |
1343 error: | 1344 error: |
1344 if (outFile != NULL) | 1345 if (outFile != NULL) |
1345 fclose(outFile); | 1346 fclose(outFile); |
1346 dmFree(buf); | 1347 dmFree(buf); |
1347 return -1; | 1348 return ret; |
1348 } | 1349 } |
1349 | 1350 |
1350 | 1351 |
1351 int dmDumpSpritesAndChars(FILE *inFile) | 1352 int dmDumpSpritesAndChars(FILE *inFile) |
1352 { | 1353 { |