From 1a6e54e6737301ae91d1ef09d71c878ff69e9e1c Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 16 Aug 2022 20:37:19 +0100 Subject: [PATCH] Fix VHS effect speeding up with interpolation. --- src/v_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index 7e01f3393..7f0b86398 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1343,8 +1343,8 @@ void V_DrawVhsEffect(boolean rewind) if (rewind) V_DrawVhsEffect(false); // experimentation - upbary -= vid.dupy * (rewind ? 3 : 1.8f); - downbary += vid.dupy * (rewind ? 2 : 1); + upbary -= FixedMul(vid.dupy * (rewind ? 3 : 1.8f), renderdeltatics); + downbary += FixedMul(vid.dupy * (rewind ? 2 : 1), renderdeltatics); if (upbary < -barsize) upbary = vid.height; if (downbary > vid.height) downbary = -barsize;