From 7bab2913c235790fec1384f98b34de1b8915b789 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 12 Aug 2017 17:01:14 -0700 Subject: [PATCH] Fixed Windows build --- src/video/SDL_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 563ccc3eb8168..19e1ab73e4e03 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -988,7 +988,7 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format, tmp2 = SDL_ConvertSurface(tmp, format, 0); /* 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(tmp2);