From e74a819b6850dc7be36ec8d6eadc33e21542bfcd Mon Sep 17 00:00:00 2001 From: Hanicef <gustaf@hanicef.me> Date: Thu, 15 Feb 2024 23:01:16 +0100 Subject: [PATCH] Fix overshoot on credit text rendering --- src/f_finale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/f_finale.c b/src/f_finale.c index 9741962289..21a1590827 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -1281,6 +1281,9 @@ void F_CreditDrawer(void) UINT8 colornum; const UINT8 *colormap; + // compensation for y on non-green resolutions, used to prevent text from disappearing before reaching the top + UINT16 compy = (vid.height - (BASEVIDHEIGHT * vid.dup)) / 2; + if (players[consoleplayer].skincolor) colornum = players[consoleplayer].skincolor; else @@ -1303,9 +1306,6 @@ void F_CreditDrawer(void) // Dim the background V_DrawFadeScreen(0xFF00, 16); - // compensation for y on non-green resolutions, used to prevent text from disappearing before reaching the top - int compy = vid.height - BASEVIDHEIGHT; - // Draw credits text on top for (i = 0; credits[i]; i++) { -- GitLab