Merge pull request #106 from GabrielRavier/fixWNarrowing
Backends/Rendering/SDLTexture: Solve -Wnarrowing warning
This commit is contained in:
commit
d707ce9f91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue