Mercurial > hg > dmlib
comparison 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 |
comparison
equal
deleted
inserted
replaced
2571:bb44c48cffac | 2572:92b93a12c014 |
---|---|
86 memcpy(surf, font->glyphs, sizeof(SDL_Surface)); | 86 memcpy(surf, font->glyphs, sizeof(SDL_Surface)); |
87 | 87 |
88 glyph = &font->glyphMap[ch]; | 88 glyph = &font->glyphMap[ch]; |
89 surf->w = glyph->width; | 89 surf->w = glyph->width; |
90 surf->h = glyph->height; | 90 surf->h = glyph->height; |
91 surf->pixels = font->glyphs->pixels + font->gsize * glyph->index; | 91 surf->pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index; |
92 } | 92 } |
93 #endif | 93 #endif |
94 | 94 |
95 | 95 |
96 /* TTF text drawing | 96 /* TTF text drawing |