forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TrueColor: fix translucency blending (#1228)
- Loading branch information
1 parent
6e5c5b4
commit 3201b93
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JNechaevsky
Author
Collaborator
|
||
argbbuffer = SDL_CreateRGBSurfaceWithFormat( | ||
0, SCREENWIDTH, SCREENHEIGHT, 32, SDL_PIXELFORMAT_ARGB8888); | ||
|
||
|
Strictly speaking, these don't have to be variables anymore. Since we are always allocating ARGB8888 surfaces now, we could just turn them into constant macros.