make full black in mngs be transparent

This commit is contained in:
Tim Felgentreff 2022-05-31 19:17:28 +02:00
parent 2541939ca2
commit c62e1702e6

View file

@ -116,6 +116,7 @@ static mng_bool MNG_DECL my_processheader(mng_handle handle, mng_uint32 width,
mng->surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height,
8 * 3, Rmask, Gmask, Bmask, 0);
SDL_SetColorKey(mng->surface, 1, 0);
if (mng->surface == NULL) {
fprintf(stderr, "Out of memory");
exit(1);