From 7cf1b3a2c780ee673bce4fe6c542c7ca6ca9e3c6 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 26 Jan 2019 22:17:47 +0900 Subject: [PATCH] Fix sdl_copyAreaSP16_shadow --- src/sdl_image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sdl_image.c b/src/sdl_image.c index a0722bb..960fb5c 100644 --- a/src/sdl_image.c +++ b/src/sdl_image.c @@ -240,9 +240,7 @@ void sdl_copyAreaSP16_shadow(int sx, int sy, int w, int h, int dx, int dy, int l BYTE *adata = GETOFFSET_ALPHA(sdl_dibinfo, sx, sy); BYTE *p_src, *p_dst, *p_ds; - SDL_Surface *s = SDL_AllocSurface(SDL_ANYFORMAT, w, h, 32, sdl_dib->format->Rmask, - sdl_dib->format->Gmask, sdl_dib->format->Bmask, - 0xFF000000); + SDL_Surface *s = SDL_CreateRGBSurfaceWithFormat(0, w, h, 32, SDL_PIXELFORMAT_ARGB8888); SDL_Rect r_src, r_dst; int x, y;