From 178519dbb0fd8e7508dab4bd956a55cfae93baf6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 23 Mar 2024 16:10:46 -0400 Subject: [PATCH] Call ren->clearScreen() in renderer if save is invalid, fixes pixel garbage appearing in final thumbnail --- src/PowderToyRenderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PowderToyRenderer.cpp b/src/PowderToyRenderer.cpp index 5e1af461d..0eee7ef6c 100644 --- a/src/PowderToyRenderer.cpp +++ b/src/PowderToyRenderer.cpp @@ -64,6 +64,7 @@ int main(int argc, char *argv[]) } else { + ren->clearScreen(); int w = Graphics::TextSize("Save file invalid").X + 15, x = (XRES-w)/2, y = (YRES-24)/2; ren->DrawRect(RectSized(Vec2{ x, y }, Vec2{ w, 24 }), 0xC0C0C0_rgb); ren->BlendText({ x+8, y+8 }, "Save file invalid", 0xC0C0F0_rgb .WithAlpha(255));