comparison src/dmtext_bm.c @ 2572:92b93a12c014

Make some casts explicit instead of implicit, fixes some -pedantic warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 Mar 2022 22:36:48 +0200
parents 934cc71c97eb
children 9807ae37ad69
comparison
equal deleted inserted replaced
2571:bb44c48cffac 2572:92b93a12c014
293 glyph->width = gwidth; 293 glyph->width = gwidth;
294 glyph->height = gheight; 294 glyph->height = gheight;
295 glyph->index = i; 295 glyph->index = i;
296 296
297 // Read pixel data 297 // Read pixel data
298 pixels = font->glyphs->pixels + (i * font->gsize); 298 pixels = (Uint8 *) font->glyphs->pixels + (i * font->gsize);
299 for (int y = 0; y < glyph->height; y++) 299 for (int y = 0; y < glyph->height; y++)
300 { 300 {
301 if (dmfread(pixels, font->glyphs->format->BytesPerPixel, 301 if (dmfread(pixels, font->glyphs->format->BytesPerPixel,
302 glyph->width, fp) != (size_t) glyph->width) 302 glyph->width, fp) != (size_t) glyph->width)
303 return DMERR_FREAD; 303 return DMERR_FREAD;