shithub: cstory

Download patch

ref: b894543f3bc6cbaad99ab836bae7c5d2c29a4cf0
parent: 4190493fd8312561ecf798c3c6ba307e80969fb6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Feb 3 09:43:02 EST 2020

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

Nice one, C++. Adding yet another C-incompatibility?

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -80,8 +80,8 @@
 	{
 		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);
 	}
--