From a6f5449ce415200ade09070a933b750e1ecd0faa Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Wed, 18 May 2022 23:42:13 -0700 Subject: [PATCH] Backport sdl-2.0 prompt shadow fix to master --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index d730062f6..7e3168a1e 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - May 15, 2022 + June 14, 2002 - May 18, 2022 */ #include "platform.h" @@ -13396,6 +13396,7 @@ static int do_prompt_image_flash_snd(const char *const text, screen->format->Rmask, screen->format->Gmask, screen->format->Bmask, screen->format->Amask); + SDL_FillRect(backup, NULL, SDL_MapRGBA(backup->format, 255, 255, 255, 255)); SDL_BlitSurface(screen, NULL, backup, NULL); for (w = 0; w <= r_ttools.w; w = w + 2)