changeset 1470:499835ba215c

Use dmC64EncodeBMP() in gfxconv.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 May 2018 22:30:36 +0300
parents 0046b4e1b35f
children a988baa5b21f
files tools/gfxconv.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
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);