Shut up a C++11 error from the enhanced branch
Nice one, C++. Adding yet another C-incompatibility?
This commit is contained in:
parent
4190493fd8
commit
b894543f3b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue