Skip to content

Commit

Permalink
Fix translucency blending
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Sep 15, 2024
1 parent 6e5c5b4 commit f81c11b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,10 @@ static void SetVideoMode(void)
if (argbbuffer == NULL)
{
#ifdef CRISPY_TRUECOLOR
int bpp;

SDL_PixelFormatEnumToMasks(SDL_PIXELFORMAT_ARGB8888, &bpp,
&rmask, &gmask, &bmask, &amask);
argbbuffer = SDL_CreateRGBSurfaceWithFormat(
0, SCREENWIDTH, SCREENHEIGHT, 32, SDL_PIXELFORMAT_ARGB8888);

Expand Down

0 comments on commit f81c11b

Please sign in to comment.