Mercurial > hg > dmlib
diff src/dmtext.h @ 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 | 5ffc48a0bebe |
children | 9807ae37ad69 |
line wrap: on
line diff
--- a/src/dmtext.h Wed Mar 02 23:23:05 2022 +0200 +++ b/src/dmtext.h Thu Mar 10 22:36:48 2022 +0200 @@ -88,7 +88,7 @@ glyph = &font->glyphMap[ch]; surf->w = glyph->width; surf->h = glyph->height; - surf->pixels = font->glyphs->pixels + font->gsize * glyph->index; + surf->pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index; } #endif