changeset 1587:e6a228b50bd6

Merge.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 04:11:45 +0300
parents 3c9e5962eca6 (current diff) a076c9d9b321 (diff)
children ca087c0cc9c4
files
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Mon May 14 04:11:31 2018 +0300
+++ b/tools/gfxconv.c	Mon May 14 04:11:45 2018 +0300
@@ -1057,10 +1057,15 @@
     int res = DMERR_OK;
     DMGrowBuf buf;
 
+    dmGrowBufInit(&buf);
+
     // Encode to target format
     dmMsg(1, "Encoding C64 bitmap data to format '%s'\n", fmt->name);
     if ((res = dmC64EncodeBMP(&buf, image, fmt)) != DMERR_OK)
+    {
+        dmErrorMsg("Error encoding bitmap data: %s\n", dmErrorStr(res));
         goto error;
+    }
 
     // And output the file
     dmMsg(1, "Writing output file '%s'\n", filename);