Skip to content

Commit

Permalink
fader: don't draw transparent fades
Browse files Browse the repository at this point in the history
Resolves #2317.
  • Loading branch information
rr- committed Jan 16, 2025
1 parent 972d786 commit 4f8d191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libtrx/game/fader.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ void Fader_Draw(FADER *const fader)
{
const int32_t current = Fader_GetCurrentValue(fader);
fader->target_drawn |= current == fader->args.target;
Output_DrawBlackRectangle(current);
if (current != 0) {
Output_DrawBlackRectangle(current);
}
}

0 comments on commit 4f8d191

Please sign in to comment.