From 4f8d19110d2c41791a39f947fa3d37cfdfb5e35e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 16 Jan 2025 15:38:48 +0100 Subject: [PATCH] fader: don't draw transparent fades Resolves #2317. --- src/libtrx/game/fader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtrx/game/fader.c b/src/libtrx/game/fader.c index 48804b9df..56649bcad 100644 --- a/src/libtrx/game/fader.c +++ b/src/libtrx/game/fader.c @@ -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); + } }