Mercurial > hg > dmlib
diff tools/gfxconv.c @ 1470:499835ba215c
Use dmC64EncodeBMP() in gfxconv.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 22:30:36 +0300 |
parents | 88845f95e791 |
children | c4755b73b93c |
line wrap: on
line diff
--- a/tools/gfxconv.c Thu May 10 22:30:02 2018 +0300 +++ b/tools/gfxconv.c Thu May 10 22:30:36 2018 +0300 @@ -1053,9 +1053,12 @@ } } - // Encode it, XXX TODO: Use proper abstraction function when it works dmC64EncodeBMP() - if ((res = dmC64EncodeGenericBMP(&buf, image, fmt)) != DMERR_OK) + // Encode it! + if ((res = dmC64EncodeBMP(&buf, image, fmt)) != DMERR_OK) + { + dmError(res, "Error converting bitmap: %s\n", dmErrorStr(res)); goto error; + } dmMsg(2, "Result: %d bytes\n", buf.len);