diff --git a/src/f_finale.c b/src/f_finale.c index cb6461853..974196228 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -1303,6 +1303,9 @@ 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++) { @@ -1312,17 +1315,17 @@ void F_CreditDrawer(void) y += 80<>FRACBITS > -20) + if (y>>FRACBITS > -20-compy) V_DrawCreditString((160 - (V_CreditStringWidth(&credits[i][1])>>1))<>FRACBITS > -10) + if (y>>FRACBITS > -10-compy) V_DrawStringAtFixed((BASEVIDWIDTH-V_StringWidth(&credits[i][1], V_ALLOWLOWERCASE|V_YELLOWMAP))<>1, y, V_ALLOWLOWERCASE|V_YELLOWMAP, &credits[i][1]); y += 12<>FRACBITS > -10) + if (y>>FRACBITS > -10-compy) V_DrawStringAtFixed(32<