From b894543f3bc6cbaad99ab836bae7c5d2c29a4cf0 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 3 Feb 2020 14:43:02 +0000 Subject: [PATCH] Shut up a C++11 error from the enhanced branch Nice one, C++. Adding yet another C-incompatibility? --- src/Backends/Rendering/SDLTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index e1890129..61c05e07 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -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); }