- use a full ClearScreen when drawing fullscreen images.

This removes the FillBorder function which was only used to clear the border around those images - but due to imprecisions can leave garbage behind.
This commit is contained in:
Christoph Oelckers 2020-06-16 00:11:06 +02:00
commit 9c7bc99201
4 changed files with 2 additions and 52 deletions

View file

@ -726,8 +726,8 @@ void WI_Drawer()
ScaleOverrider s(twod);
IFVIRTUALPTRNAME(WI_Screen, "StatusScreen", Drawer)
{
FillBorder(twod, nullptr);
twod->ClearClipRect();
twod->ClearScreen();
VMValue self = WI_Screen;
VMCall(func, &self, 1, nullptr, 0);
twod->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.