diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index 85689c4b..5d3ab84b 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -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);