Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 1722:de8e0a404c06
Refactor fmtDecodeTruePaintPacked() to use more generic DMGrowBuf functions
now that they support backwards growing buffers, and get rid of
dmReverseGetByte() and dmReversePutByte() helpers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 06 Jun 2018 15:22:15 +0300 |
parents | 77a4d8fab5cc |
children | f9128665a47e |
comparison
equal
deleted
inserted
replaced
1721:c9a6f1dae756 | 1722:de8e0a404c06 |
---|---|
281 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); | 281 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); |
282 | 282 |
283 void dmSetDefaultC64Palette(DMImage *img); | 283 void dmSetDefaultC64Palette(DMImage *img); |
284 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); | 284 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); |
285 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); | 285 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); |
286 BOOL dmReverseGetByte(const Uint8 *buf, size_t *offs, Uint8 *data); | |
287 BOOL dmReversePutByte(Uint8 *buf, size_t *offs, const Uint8 data); | |
288 | 286 |
289 // C64 bitmap image allocation/freeing | 287 // C64 bitmap image allocation/freeing |
290 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); | 288 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); |
291 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); | 289 int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); |
292 void dmC64MemBlockFree(DMC64MemBlock *blk); | 290 void dmC64MemBlockFree(DMC64MemBlock *blk); |