Mercurial > hg > dmlib
comparison src/libgfx.c @ 1264:aa6e8a24b94b
Oops, when did I break this? IFF ILBM reader should now work again.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 25 May 2015 12:58:02 +0300 |
parents | 848a88ce7a57 |
children | 4e074b9b4789 |
comparison
equal
deleted
inserted
replaced
1262:dc9b20d77bc9 | 1264:aa6e8a24b94b |
---|---|
1230 if (!dm_fread_be32(fp, &chunk->id) || | 1230 if (!dm_fread_be32(fp, &chunk->id) || |
1231 !dm_fread_be32(fp, &chunk->size)) | 1231 !dm_fread_be32(fp, &chunk->size)) |
1232 { | 1232 { |
1233 dmError(DMERR_FREAD, | 1233 dmError(DMERR_FREAD, |
1234 "ILBM: Could not read IFF chunk header.\n"); | 1234 "ILBM: Could not read IFF chunk header.\n"); |
1235 return FALSE; | |
1236 } | |
1237 else | |
1235 return TRUE; | 1238 return TRUE; |
1236 } | |
1237 else | |
1238 return FALSE; | |
1239 } | 1239 } |
1240 | 1240 |
1241 static char * dmGetIFFChunkID(DMIFFChunk *chunk) | 1241 static char * dmGetIFFChunkID(DMIFFChunk *chunk) |
1242 { | 1242 { |
1243 chunk->str[0] = (chunk->id >> 24) & 0xff; | 1243 chunk->str[0] = (chunk->id >> 24) & 0xff; |