comparison 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
comparison
equal deleted inserted replaced
1946:c30dfd5e3227 1947:8896d5676f1b
149 typedef struct _DMC64ImageFormat DMC64ImageFormat; 149 typedef struct _DMC64ImageFormat DMC64ImageFormat;
150 150
151 151
152 typedef struct _DMC64Image 152 typedef struct _DMC64Image
153 { 153 {
154 int type, // Image type (D64_FMT_*) 154 DMC64ImageCommonFormat *fmt;
155 width, height, // Width and height in pixels 155 int laceType, // Interlace type (D64_ILACE_*)
156 chWidth, chHeight, // Width and height in charblocks
157 laceType, // Interlace type (D64_ILACE_*)
158 nbanks; // Number of video banks used 156 nbanks; // Number of video banks used
159 157
160 // Bitmaps, color RAM, screen, etc. blocks * nbanks 158 // Bitmaps, color RAM, screen, etc. blocks * nbanks
161 // Not all of them may be allocated 159 // Not all of them may be allocated
162 DMC64MemBlock 160 DMC64MemBlock