- 2D drawer cleanup.

This commit is contained in:
Christoph Oelckers 2020-04-11 19:46:57 +02:00
commit b18faacab0
36 changed files with 1032 additions and 1147 deletions

View file

@ -577,7 +577,7 @@ DEFINE_ACTION_FUNCTION(FSavegameManager, ClearSaveStuff)
bool FSavegameManager::DrawSavePic(int x, int y, int w, int h)
{
if (SavePic == nullptr) return false;
screen->DrawTexture(SavePic, x, y, DTA_DestWidth, w, DTA_DestHeight, h, DTA_Masked, false, TAG_DONE);
DrawTexture(twod, SavePic, x, y, DTA_DestWidth, w, DTA_DestHeight, h, DTA_Masked, false, TAG_DONE);
return true;
}

View file

@ -331,7 +331,7 @@ void DMenu::CallDrawer()
{
VMValue params[] = { (DObject*)this };
VMCall(func, params, 1, nullptr, 0);
screen->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
twod->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
}
}
@ -878,7 +878,7 @@ static void M_Dim()
amount = gameinfo.dimamount;
}
screen->Dim(dimmer, amount, 0, 0, screen->GetWidth(), screen->GetHeight());
Dim(twod, dimmer, amount, 0, 0, screen->GetWidth(), screen->GetHeight());
}