Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1778:e8041923767d
Possibly fix FunPaint 2 unpacked format saving.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 Jun 2018 18:21:06 +0300 |
parents | a7f9e12bcd9b |
children | 20bf4140eaa1 |
comparison
equal
deleted
inserted
replaced
1777:a7f9e12bcd9b | 1778:e8041923767d |
---|---|
627 | 627 |
628 static int fmtEncodeFunPaint2Unpacked(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) | 628 static int fmtEncodeFunPaint2Unpacked(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) |
629 { | 629 { |
630 // Add the header bits | 630 // Add the header bits |
631 if (!dmGrowBufPut(buf, (Uint8 *) fmtFunPaint2MagicID, strlen(fmtFunPaint2MagicID)) || | 631 if (!dmGrowBufPut(buf, (Uint8 *) fmtFunPaint2MagicID, strlen(fmtFunPaint2MagicID)) || |
632 !dmGrowBufPutU8(buf, 0) || | |
632 !dmGrowBufPutU8(buf, 0)) | 633 !dmGrowBufPutU8(buf, 0)) |
633 return DMERR_MALLOC; | 634 return DMERR_MALLOC; |
634 | 635 |
635 return dmC64EncodeGenericBMP(FALSE, buf, img, fmt); | 636 return dmC64EncodeGenericBMP(FALSE, buf, img, fmt); |
636 } | 637 } |