diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index f5998ccf..0166a970 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -294,7 +294,7 @@ void Backend_DrawGlyph(Backend_Surface *surface, Backend_Glyph *glyph, long x, l if (glyph == NULL || surface == NULL) return; - SDL_Rect destination_rect = {(int)x, (int)y, glyph->width, glyph->height}; + SDL_Rect destination_rect = {(int)x, (int)y, (int)glyph->width, (int)glyph->height}; // Blit the texture SDL_SetTextureColorMod(glyph->texture, colours[0], colours[1], colours[2]);