From 75257fbdd20ab2412640d6b74238a5590aff26c8 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 2 Aug 2023 18:39:26 +0100 Subject: [PATCH] Fix instantaneous menu background image slideout on fade wipe If the renderdeltatics is lagged enough, perform no change - a smaller delta should be along shortly. --- src/k_menudraw.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/k_menudraw.c b/src/k_menudraw.c index be39be922..b94665a9f 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -205,15 +205,18 @@ void M_DrawMenuBackground(void) V_DrawFixedPatch(8 * FRACUNIT, -bgText1Scroll + text1loop, FRACUNIT, V_SUBTRACT, text1, NULL); - bgText1Scroll += (MENUBG_TEXTSCROLL*renderdeltatics); - while (bgText1Scroll > text1loop) - bgText1Scroll -= text1loop; - V_DrawFixedPatch(-bgText2Scroll, (BASEVIDHEIGHT-8) * FRACUNIT, FRACUNIT, V_ADD, text2, NULL); V_DrawFixedPatch(-bgText2Scroll + text2loop, (BASEVIDHEIGHT-8) * FRACUNIT, FRACUNIT, V_ADD, text2, NULL); + if (renderdeltatics > 2*FRACUNIT) + return; // wipe hitch... + + bgText1Scroll += (MENUBG_TEXTSCROLL*renderdeltatics); + while (bgText1Scroll > text1loop) + bgText1Scroll -= text1loop; + bgText2Scroll += (MENUBG_TEXTSCROLL*renderdeltatics); while (bgText2Scroll > text2loop) bgText2Scroll -= text2loop;