Skip to content

Commit

Permalink
- clear the screen before drawing content, not afterward.
Browse files Browse the repository at this point in the history
The intermission screens got it wrong and drew the black border over the image.
  • Loading branch information
coelckers committed Mar 17, 2020
1 parent 15d4fb8 commit d32e0b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/intermission/intermission.cpp
Expand Up @@ -231,7 +231,6 @@ void DIntermissionScreen::Drawer ()
if (CheckOverlay(i))
screen->DrawTexture (TexMan.GetTexture(mOverlays[i].mPic), mOverlays[i].x, mOverlays[i].y, DTA_320x200, true, TAG_DONE);
}
if (!mFlatfill) screen->FillBorder (NULL);
if (mSubtitle)
{
const char *sub = mSubtitle.GetChars();
Expand Down Expand Up @@ -293,7 +292,6 @@ void DIntermissionScreenFader::Drawer ()
if (CheckOverlay(i))
screen->DrawTexture (TexMan.GetTexture(mOverlays[i].mPic), mOverlays[i].x, mOverlays[i].y, DTA_320x200, true, DTA_ColorOverlay, color, TAG_DONE);
}
screen->FillBorder (NULL);
}
}

Expand Down Expand Up @@ -756,7 +754,6 @@ void DIntermissionScreenScroller::Drawer ()
DTA_Masked, false,
TAG_DONE);

screen->FillBorder (NULL);
mBackground = mSecondPic;
}
else
Expand Down Expand Up @@ -921,6 +918,7 @@ void DIntermissionController::Drawer ()
{
if (mScreen != NULL)
{
screen->FillBorder(nullptr);
mScreen->Drawer();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/wi_stuff.cpp
Expand Up @@ -599,7 +599,6 @@ void DInterBackground::drawBackground(int state, bool drawsplat, bool snl_pointe
// placing the animations precisely where they belong on the base pic
animwidth = background->GetDisplayWidthDouble();
animheight = background->GetDisplayHeightDouble();
screen->FillBorder(NULL);
screen->DrawTexture(background, 0, 0, DTA_Fullscreen, true, TAG_DONE);
}
else
Expand Down Expand Up @@ -724,6 +723,7 @@ void WI_Drawer()
ScaleOverrider s;
IFVIRTUALPTRNAME(WI_Screen, "StatusScreen", Drawer)
{
screen->FillBorder(nullptr);
VMValue self = WI_Screen;
VMCall(func, &self, 1, nullptr, 0);
screen->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
Expand Down

0 comments on commit d32e0b9

Please sign in to comment.