# HG changeset patch # User Matti Hamalainen # Date 1525980636 -10800 # Node ID 499835ba215c674a0df2e478ab73b32f1ef2dbf7 # Parent 0046b4e1b35f11e862fdfc046c3c1027bfe0e1a9 Use dmC64EncodeBMP() in gfxconv. diff -r 0046b4e1b35f -r 499835ba215c tools/gfxconv.c --- 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);