Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1491:b329fea6f013
Reindent polishing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 11 May 2018 05:31:16 +0300 |
parents | 71e847ea9d22 |
children | 5f9080d24f3c |
comparison
equal
deleted
inserted
replaced
1490:665a0b917d22 | 1491:b329fea6f013 |
---|---|
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->width = fmt->width; | 140 img->width = fmt->width; |
141 img->height = fmt->height; | 141 img->height = fmt->height; |
142 img->chWidth = fmt->chWidth; | 142 img->chWidth = fmt->chWidth; |
143 img->chHeight = fmt->chHeight; | 143 img->chHeight = fmt->chHeight; |
144 img->nbanks = dmC64ImageGetNumBanks(fmt); | 144 img->nbanks = dmC64ImageGetNumBanks(fmt); |
145 | 145 |
146 img->screenSize = img->chWidth * img->chHeight; | 146 img->screenSize = img->chWidth * img->chHeight; |
147 img->bitmapSize = img->screenSize * 8; | 147 img->bitmapSize = img->screenSize * 8; |
148 img->charmemSize = C64_MAX_CHARS * C64_CHR_SIZE; | 148 img->charmemSize = C64_MAX_CHARS * C64_CHR_SIZE; |
149 | 149 |
150 // Allocate banks | 150 // Allocate banks |
151 if ((img->color = dmCalloc(img->nbanks, sizeof(Uint8 *))) == NULL || | 151 if ((img->color = dmCalloc(img->nbanks, sizeof(Uint8 *))) == NULL || |
152 (img->bitmap = dmCalloc(img->nbanks, sizeof(Uint8 *))) == NULL || | 152 (img->bitmap = dmCalloc(img->nbanks, sizeof(Uint8 *))) == NULL || |