Commit 7bab2913c235790fec1384f98b34de1b8915b789

Sam Lantinga 2017-08-12T17:01:14

Fixed Windows build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c
index 563ccc3..19e1ab7 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);