comparison tools/lib64gfx.c @ 1492:5f9080d24f3c

Set DMC64Image::type in dmC64ImageAlloc() from format type.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 05:31:46 +0300
parents b329fea6f013
children 3b220604ae3c
comparison
equal deleted inserted replaced
1491:b329fea6f013 1492:5f9080d24f3c
135 135
136 if (img == NULL) 136 if (img == NULL)
137 return NULL; 137 return NULL;
138 138
139 // Initialize image information 139 // Initialize image information
140 img->type = fmt->type;
140 img->width = fmt->width; 141 img->width = fmt->width;
141 img->height = fmt->height; 142 img->height = fmt->height;
142 img->chWidth = fmt->chWidth; 143 img->chWidth = fmt->chWidth;
143 img->chHeight = fmt->chHeight; 144 img->chHeight = fmt->chHeight;
144 img->nbanks = dmC64ImageGetNumBanks(fmt); 145 img->nbanks = dmC64ImageGetNumBanks(fmt);