Call ren->clearScreen() in renderer if save is invalid, fixes pixel garbage appearing in final thumbnail
This commit is contained in:
parent
bb471e63e1
commit
178519dbb0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user