Shut up a warning in the SDLTexture renderer backend
This commit is contained in:
parent
b814890d09
commit
43f7087ffb
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue