Shut up a C++11 error from the enhanced branch

Nice one, C++. Adding yet another C-incompatibility?
This commit is contained in:
Clownacy 2020-02-03 14:43:02 +00:00
parent 4190493fd8
commit b894543f3b

View file

@ -80,8 +80,8 @@ static void GlyphBatch_Draw(spritebatch_sprite_t *sprites, int count, int textur
{
Backend_Glyph *glyph = (Backend_Glyph*)sprites[i].image_id;
SDL_Rect source_rect = {(int)(texture_w * sprites[i].minx), (int)(texture_h * sprites[i].maxy), glyph->width, glyph->height};
SDL_Rect destination_rect = {(int)sprites[i].x, (int)sprites[i].y, glyph->width, glyph->height};
SDL_Rect source_rect = {(int)(texture_w * sprites[i].minx), (int)(texture_h * sprites[i].maxy), (int)glyph->width, (int)glyph->height};
SDL_Rect destination_rect = {(int)sprites[i].x, (int)sprites[i].y, (int)glyph->width, (int)glyph->height};
SDL_RenderCopy(renderer, texture_atlas, &source_rect, &destination_rect);
}