Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1984:e7f2ddaf94a6
Change encode and decode function format parameter type from DMC64ImageFormat to DMC64ImageCommonFormat.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Jul 2018 07:00:38 +0300 |
parents | 02b216fae7d5 |
children | 221a95caa91e |
comparison
equal
deleted
inserted
replaced
1983:214c7bd8692f | 1984:e7f2ddaf94a6 |
---|---|
1019 } | 1019 } |
1020 break; | 1020 break; |
1021 | 1021 |
1022 case DO_FUNC: | 1022 case DO_FUNC: |
1023 if (op->decFunction != NULL && | 1023 if (op->decFunction != NULL && |
1024 !op->decFunction(img, op, buf, fmt)) | 1024 !op->decFunction(img, op, buf, fmt->format)) |
1025 { | 1025 { |
1026 return dmError(DMERR_INTERNAL, | 1026 return dmError(DMERR_INTERNAL, |
1027 "Decode op custom function failed: op #%d, " | 1027 "Decode op custom function failed: op #%d, " |
1028 "offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n", | 1028 "offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n", |
1029 i, op->offs, op->offs, op->bank, size, size, buf->len, buf->len); | 1029 i, op->offs, op->offs, op->bank, size, size, buf->len, buf->len); |
1199 } | 1199 } |
1200 break; | 1200 break; |
1201 | 1201 |
1202 case DO_FUNC: | 1202 case DO_FUNC: |
1203 if (op->encFunction != NULL && | 1203 if (op->encFunction != NULL && |
1204 !op->encFunction(op, buf, img, fmt)) | 1204 !op->encFunction(op, buf, img, fmt->format)) |
1205 { | 1205 { |
1206 res = dmError(DMERR_INTERNAL, | 1206 res = dmError(DMERR_INTERNAL, |
1207 "Encode op custom function failed: op #%d, " | 1207 "Encode op custom function failed: op #%d, " |
1208 "offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n", | 1208 "offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n", |
1209 i, op->offs, op->offs, op->bank, size, size, buf->len, buf->len); | 1209 i, op->offs, op->offs, op->bank, size, size, buf->len, buf->len); |