Fix graphical artifacts sometimes showing up with ptsave startup arg
This commit is contained in:
parent
e824e023f1
commit
4c74d25840
@ -890,6 +890,7 @@ int main(int argc, char * argv[])
|
|||||||
auto ptsaveArg = arguments["ptsave"];
|
auto ptsaveArg = arguments["ptsave"];
|
||||||
if (ptsaveArg.has_value())
|
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->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->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);
|
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);
|
||||||
|
Reference in New Issue
Block a user