Adapting latest cherry-pick to SDL2. I am later
This commit is contained in:
parent
dc6a7f2244
commit
18c6835a2d
1 changed files with 3 additions and 3 deletions
|
|
@ -22789,7 +22789,7 @@ static int do_color_mix(void)
|
||||||
SDL_BlitSurface(backup, NULL, screen, NULL);
|
SDL_BlitSurface(backup, NULL, screen, NULL);
|
||||||
|
|
||||||
#ifndef NO_PROMPT_SHADOWS
|
#ifndef NO_PROMPT_SHADOWS
|
||||||
alpha_surf = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_SRCALPHA,
|
alpha_surf = SDL_CreateRGBSurface(SDL_SWSURFACE,
|
||||||
r_final.w + 8,
|
r_final.w + 8,
|
||||||
r_final.h + 16,
|
r_final.h + 16,
|
||||||
screen->format->BitsPerPixel,
|
screen->format->BitsPerPixel,
|
||||||
|
|
@ -22799,7 +22799,7 @@ static int do_color_mix(void)
|
||||||
if (alpha_surf != NULL)
|
if (alpha_surf != NULL)
|
||||||
{
|
{
|
||||||
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
|
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
|
||||||
SDL_SetAlpha(alpha_surf, SDL_SRCALPHA, 64);
|
SDL_SetSurfaceAlphaMod(alpha_surf, 64);
|
||||||
|
|
||||||
for (i = 8; i > 0; i = i - 2)
|
for (i = 8; i > 0; i = i - 2)
|
||||||
{
|
{
|
||||||
|
|
@ -22958,7 +22958,7 @@ static int do_color_mix(void)
|
||||||
chose = 0;
|
chose = 0;
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
else if (event.type == SDL_ACTIVEEVENT)
|
else if (event.type == SDL_WINDOWEVENT)
|
||||||
{
|
{
|
||||||
handle_active(&event);
|
handle_active(&event);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue