Mercurial > hg > dmlib
diff tools/gfxconv.c @ 1747:5e928618fdc8
Change DMGrowBuf API somewhat and implement more copy operations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 11 Jun 2018 13:57:07 +0300 |
parents | 881a3fc421d8 |
children | 027fb7313d85 |
line wrap: on
line diff
--- a/tools/gfxconv.c Sun Jun 10 20:01:03 2018 +0300 +++ b/tools/gfxconv.c Mon Jun 11 13:57:07 2018 +0300 @@ -1709,7 +1709,10 @@ forced->name, forced->type, forced->fext); } - res = dmC64DecodeBMP(&inC64Image, dmGrowBufCreateFrom(&tbuf, dataBuf, dataSize), 0, 2, &inC64Fmt, forced); + res = dmC64DecodeBMP(&inC64Image, + dmGrowBufConstCreateFrom(&tbuf, dataBuf, dataSize), + 0, 2, &inC64Fmt, forced); + if (forced == NULL && inC64Fmt != NULL && res == DMERR_OK) { dmMsg(1, "Probed '%s' format image, type %d, %s\n",