Shut up a warning in the SDLTexture renderer backend

This commit is contained in:
Clownacy 2019-08-25 21:30:44 +01:00
parent b814890d09
commit 43f7087ffb

View file

@ -138,10 +138,10 @@ void Backend_UnlockSurface(Backend_Surface *surface)
const unsigned char *src_pixel = surface->pixels; const unsigned char *src_pixel = surface->pixels;
// Convert the SDL_Surface's colour-keyed pixels to RGBA32 // Convert the SDL_Surface's colour-keyed pixels to RGBA32
for (int y = 0; y < surface->height; ++y) for (unsigned int y = 0; y < surface->height; ++y)
{ {
for (int x = 0; x < surface->width; ++x) for (unsigned int x = 0; x < surface->width; ++x)
{ {
*buffer_pointer++ = src_pixel[0]; *buffer_pointer++ = src_pixel[0];
*buffer_pointer++ = src_pixel[1]; *buffer_pointer++ = src_pixel[1];