From f82bdd878d6262068d34f1db5483d57d960029f2 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Mon, 27 Feb 2023 21:46:40 -0600 Subject: [PATCH] hwr2: remove now-unused software wiggle --- src/f_wipe.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/src/f_wipe.c b/src/f_wipe.c index 2068ac6d5..227573c46 100644 --- a/src/f_wipe.c +++ b/src/f_wipe.c @@ -366,51 +366,6 @@ void F_WipeEndScreen(void) #endif } -/** Wiggle post processor for encore wipes - */ -static void F_DoEncoreWiggle(UINT8 time) -{ - UINT8 *tmpscr = wipe_scr_start; - UINT8 *srcscr = wipe_scr; - angle_t disStart = (time * 128) & FINEMASK; - INT32 y, sine, newpix, scanline; - - for (y = 0; y < vid.height; y++) - { - sine = (FINESINE(disStart) * (time*12))>>FRACBITS; - scanline = y / vid.dupy; - if (scanline & 1) - sine = -sine; - newpix = abs(sine); - - if (sine < 0) - { - M_Memcpy(&tmpscr[(y*vid.width)+newpix], &srcscr[(y*vid.width)], vid.width-newpix); - - // Cleanup edge - while (newpix) - { - tmpscr[(y*vid.width)+newpix] = srcscr[(y*vid.width)]; - newpix--; - } - } - else - { - M_Memcpy(&tmpscr[(y*vid.width)], &srcscr[(y*vid.width) + sine], vid.width-newpix); - - // Cleanup edge - while (newpix) - { - tmpscr[(y*vid.width) + vid.width - newpix] = srcscr[(y*vid.width) + (vid.width-1)]; - newpix--; - } - } - - disStart += (time*8); //the offset into the displacement map, increment each game loop - disStart &= FINEMASK; //clip it to FINEMASK - } -} - /** Draw the stage title. */ void F_WipeStageTitle(void)