From 03c57cc721724e1990b14f068019cd793beeb953 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Fri, 10 Feb 2023 02:08:14 -0800 Subject: [PATCH] More WIP starter/template scaling Need to actually scale, if we have no background. --- src/tuxpaint.c | 3 ++- templates/rocks.dat | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 templates/rocks.dat diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 219b5af11..86999d011 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -14356,7 +14356,8 @@ static void autoscale_copy_scale_or_smear_free(SDL_Surface * src, SDL_Surface * } else { printf("No smearing or background needed\n"); - SDL_FreeSurface(src); + autoscale_copy_smear_free(src, dst, blit); + // SDL_FreeSurface(src); } } diff --git a/templates/rocks.dat b/templates/rocks.dat new file mode 100644 index 000000000..3041f4545 --- /dev/null +++ b/templates/rocks.dat @@ -0,0 +1 @@ +allowscale=both