Backends/Rendering/SDLTexture: Solve -Wnarrowing warning
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
cf75cbcad2
commit
fb353fbc7e
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