Mend drop-shadows on prompts

...they were not rendering the way we were doing it in the sdl2.0
branch.
This commit is contained in:
Bill Kendrick 2022-09-05 00:04:52 -07:00
parent 53c1c5e995
commit 270f5353e0
2 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - September 2, 2022
June 14, 2002 - September 5, 2022
*/
#include "platform.h"
@ -13947,10 +13947,7 @@ static int do_prompt_image_flash_snd(const char *const text,
if (alpha_surf != NULL)
{
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
SDL_SetSurfaceAlphaMod(alpha_surf, 64);
SDL_FillRect(alpha_surf, NULL, SDL_MapRGBA(alpha_surf->format, 0, 0, 0, 64));
for (i = 8; i > 0; i = i - 2)
{
@ -22453,6 +22450,9 @@ static Uint8 magic_touched(int x, int y)
* Allow the user to select a color from one of the
* pixels within their picture.
*
* A small dialog will appear over the color palette
* at the bottom of the screen.
*
* @param boolean temp_mode - whether to only appear
* while a shortcut key is being held
* (if not, the mouse will be positioned at the bottom
@ -22564,8 +22564,7 @@ static int do_color_sel(int temp_mode)
if (alpha_surf != NULL)
{
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
SDL_SetSurfaceAlphaMod(alpha_surf, 64);
SDL_FillRect(alpha_surf, NULL, SDL_MapRGBA(alpha_surf->format, 0, 0, 0, 64));
for (i = 8; i > 0; i = i - 2)
{
@ -22929,9 +22928,7 @@ static int do_color_picker(void)
if (alpha_surf != NULL)
{
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
SDL_SetSurfaceAlphaMod(alpha_surf, 64);
SDL_FillRect(alpha_surf, NULL, SDL_MapRGBA(alpha_surf->format, 0, 0, 0, 64));
for (i = 8; i > 0; i = i - 2)
{
@ -23655,8 +23652,7 @@ static int do_color_mix(void)
if (alpha_surf != NULL)
{
SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0));
SDL_SetSurfaceAlphaMod(alpha_surf, 64);
SDL_FillRect(alpha_surf, NULL, SDL_MapRGBA(alpha_surf->format, 0, 0, 0, 64));
for (i = 8; i > 0; i = i - 2)
{
@ -23668,6 +23664,7 @@ static int do_color_mix(void)
SDL_BlitSurface(alpha_surf, NULL, screen, &dest);
}
SDL_FreeSurface(alpha_surf);
}
#endif