fix blend mode for converted surface with alpha
This commit is contained in:
parent
13ec545936
commit
93bed9ccce
|
@ -1298,7 +1298,7 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
|
|||
|
||||
/* Enable alpha blending by default if the new surface has an
|
||||
* alpha channel or alpha modulation */
|
||||
if ((surface->format->Amask && format->Amask) ||
|
||||
if ((convert->format->Amask && format->Amask) ||
|
||||
(palette_has_alpha && format->Amask) ||
|
||||
(copy_flags & SDL_COPY_MODULATE_ALPHA)) {
|
||||
SDL_SetSurfaceBlendMode(convert, SDL_BLENDMODE_BLEND);
|
||||
|
|
Loading…
Reference in a new issue