Fix graphical artifacts sometimes showing up with ptsave startup arg

This commit is contained in:
jacob1 2023-01-26 22:40:58 -05:00
parent e824e023f1
commit 4c74d25840
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -890,6 +890,7 @@ int main(int argc, char * argv[])
auto ptsaveArg = arguments["ptsave"];
if (ptsaveArg.has_value())
{
engine->g->Clear();
engine->g->fillrect((engine->GetWidth()/2)-101, (engine->GetHeight()/2)-26, 202, 52, 0, 0, 0, 210);
engine->g->drawrect((engine->GetWidth()/2)-100, (engine->GetHeight()/2)-25, 200, 50, 255, 255, 255, 180);
engine->g->drawtext((engine->GetWidth()/2)-(Graphics::textwidth("Loading save...")/2), (engine->GetHeight()/2)-5, "Loading save...", style::Colour::InformationTitle.Red, style::Colour::InformationTitle.Green, style::Colour::InformationTitle.Blue, 255);