diff tools/gfxconv.c @ 1947:8896d5676f1b

Architectural change: remove some duplicated variables from DMC64Image structure and replace them with a pointer to DMC64ImageCommonFormat.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 29 Jun 2018 17:17:14 +0300
parents c5a46cb4cce5
children 161e731eb152
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri Jun 29 04:05:32 2018 +0300
+++ b/tools/gfxconv.c	Fri Jun 29 17:17:14 2018 +0300
@@ -1137,7 +1137,7 @@
     dst->d024    = src->d024;
 
     // Try to do some simple fixups
-    if ((dst->type & D64_FMT_FLI) && (src->type & D64_FMT_FLI) == 0)
+    if ((dst->fmt->type & D64_FMT_FLI) && (src->fmt->type & D64_FMT_FLI) == 0)
     {
         dmMsg(1, "Upconverting multicolor to FLI.\n");
         for (int i = 0; i < dst->nbanks; i++)
@@ -1153,7 +1153,7 @@
         }
     }
     else
-    if ((src->type & D64_FMT_FLI) && (dst->type & D64_FMT_FLI) == 0)
+    if ((src->fmt->type & D64_FMT_FLI) && (dst->fmt->type & D64_FMT_FLI) == 0)
     {
         dmMsg(1, "Downconverting FLI to multicolor.\n");
     }