diff tools/lib64gfx.h @ 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 489dde33f6b6
children e7f2ddaf94a6
line wrap: on
line diff
--- a/tools/lib64gfx.h	Fri Jun 29 04:05:32 2018 +0300
+++ b/tools/lib64gfx.h	Fri Jun 29 17:17:14 2018 +0300
@@ -151,10 +151,8 @@
 
 typedef struct _DMC64Image
 {
-    int type,                // Image type (D64_FMT_*)
-        width, height,       // Width and height in pixels
-        chWidth, chHeight,   // Width and height in charblocks
-        laceType,            // Interlace type (D64_ILACE_*)
+    DMC64ImageCommonFormat *fmt;
+    int laceType,            // Interlace type (D64_ILACE_*)
         nbanks;              // Number of video banks used
 
     // Bitmaps, color RAM, screen, etc. blocks * nbanks