Merge pull request #106 from GabrielRavier/fixWNarrowing

Backends/Rendering/SDLTexture: Solve -Wnarrowing warning
This commit is contained in:
Clownacy 2020-03-18 12:03:17 +00:00 committed by GitHub
commit d707ce9f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);