From ed7184bd641f0fa07886f024124bcf72f19afc28 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Wed, 18 May 2022 23:37:23 -0700 Subject: [PATCH] Avoid leftover shadow on Open->Erase prompt Fixes https://sourceforge.net/p/tuxpaint/bugs/248/ (Seemed to do with alpha of the new `backup` surface? I admit I don't 100% understand what was going on.) --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 78cfad03b..556a110c8 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" @@ -13706,6 +13706,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)