Fixed Windows build

Sam Lantinga 2017-08-12 17:01:14 -07:00
parent 05facb3d4e
commit 7bab2913c2
1 changed files with 1 additions and 1 deletions

View File

@ -988,7 +988,7 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
tmp2 = SDL_ConvertSurface(tmp, format, 0); tmp2 = SDL_ConvertSurface(tmp, format, 0);
/* Get the converted colorkey */ /* Get the converted colorkey */
memcpy(&converted_colorkey, tmp2->pixels, tmp2->format->BytesPerPixel); SDL_memcpy(&converted_colorkey, tmp2->pixels, tmp2->format->BytesPerPixel);
SDL_FreeSurface(tmp); SDL_FreeSurface(tmp);
SDL_FreeSurface(tmp2); SDL_FreeSurface(tmp2);