From 78751d96599d19b7b41564a08962fdb6bb4db4a5 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 9 Feb 2025 11:44:19 -0500 Subject: [PATCH] Uncap input display --- src/f_finale.c | 25 +++++++++++++------------ src/k_hud.c | 21 +++++++++++---------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/f_finale.c b/src/f_finale.c index 82f85aedd..ea6efc94f 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -235,30 +235,31 @@ static void F_TitleBGScroll(INT32 scrollspeed) pat = W_CachePatchName("TITLEBG1", PU_CACHE); pat2 = W_CachePatchName("TITLEBG2", PU_CACHE); - w = vid.width / vid.dupx; + w = (vid.width / vid.dupx)<width); - anim2 = SHORT(pat2->width) - (((finalecount*scrollspeed)/16) % SHORT(pat2->width)); + // The scroll offset MUST be clamped before shifting by FRACBITS, or else it'll overflow in about 3 minutes + animtimer = ((((finalecount * scrollspeed) % (SHORT(pat->width)*16))<width)<width)*16))<width); + V_DrawFixedPatch(x, y, FRACUNIT, V_SNAPTOTOP|V_SNAPTOLEFT, pat, NULL); + x += SHORT(pat->width)<height); + y = (BASEVIDHEIGHT - SHORT(pat2->height))<width); + V_DrawFixedPatch(x, y, FRACUNIT, V_SNAPTOBOTTOM|V_SNAPTOLEFT, pat2, NULL); + x += SHORT(pat2->width)<= 20) V_DrawSmallScaledPatch(84, 87, 0, ttkart); else if (finalecount >= 10) - V_DrawSciencePatch((84<skincolor].ramp[5]; const INT32 accent2 = splitflags | skincolors[stplyr->skincolor].ramp[9]; ticcmd_t *cmd = &stplyr->cmd; @@ -4035,17 +4036,17 @@ static void K_drawInput(void) #define drawbutt(xoffs, butt, symb)\ if (!stplyr->exiting && (cmd->buttons & butt))\ {\ - offs = 2;\ + offs = 2*FRACUNIT;\ col = accent1;\ }\ else\ {\ offs = 0;\ col = accent2;\ - V_DrawFill(x+(xoffs), y+BUTTH, BUTTW-1, 2, splitflags|31);\ + V_DrawFill((x + xoffs*FRACUNIT)>>FRACBITS, (y + BUTTH*FRACUNIT)>>FRACBITS, BUTTW-1, 2, splitflags|31);\ }\ - V_DrawFill(x+(xoffs), y+offs, BUTTW-1, BUTTH, col);\ - V_DrawFixedPatch((x+1+(xoffs))<>FRACBITS, (y+offs)>>FRACBITS, BUTTW-1, BUTTH, col);\ + V_DrawFixedPatch(x + FRACUNIT + xoffs*FRACUNIT, y + offs + FRACUNIT, FRACUNIT, splitflags, fontv[TINY_FONT].font[symb-HU_FONTSTART], NULL) drawbutt(-2*BUTTW, BT_ACCELERATE, 'A'); drawbutt( -BUTTW, BT_BRAKE, 'B'); @@ -4057,7 +4058,7 @@ static void K_drawInput(void) #undef BUTTW #undef BUTTH - y -= 1; + y -= FRACUNIT; if (stplyr->exiting || !stplyr->cmd.turning) // no turn target = 0; @@ -4083,7 +4084,7 @@ static void K_drawInput(void) if (pn < 0) { splitflags |= V_FLIP; // right turn - x--; + x -= FRACUNIT; } target = abs(pn); @@ -4091,12 +4092,12 @@ static void K_drawInput(void) target = 4; if (!stplyr->skincolor) - V_DrawFixedPatch(x<skincolor, GTC_CACHE); - V_DrawFixedPatch(x<