Call ren->clearScreen() in renderer if save is invalid, fixes pixel garbage appearing in final thumbnail

This commit is contained in:
jacob1 2024-03-23 16:10:46 -04:00
parent bb471e63e1
commit 178519dbb0
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -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));