Backends/Rendering/SDLTexture: Solve -Wnarrowing warning

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-03-18 11:54:46 +01:00
parent cf75cbcad2
commit fb353fbc7e

View file

@ -312,7 +312,7 @@ void Backend_UnlockSurface(Backend_Surface *surface, unsigned int width, unsigne
free(surface->pixels);
SDL_Rect rect = {0, 0, width, height};
SDL_Rect rect = {0, 0, (int)width, (int)height};
SDL_UpdateTexture(surface->texture, &rect, buffer, width * 4);
free(buffer);