Skip to content

Commit

Permalink
Call ren->clearScreen() in renderer if save is invalid, fixes pixel g…
Browse files Browse the repository at this point in the history
…arbage appearing in final thumbnail
  • Loading branch information
jacob1 committed Mar 23, 2024
1 parent bb471e6 commit 178519d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PowderToyRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 178519d

Please sign in to comment.