From d3084a788e699bcc058f12e9af31cbb2faab5e89 Mon Sep 17 00:00:00 2001 From: LMP88959 <109979235+LMP88959@users.noreply.github.com> Date: Sat, 13 May 2023 13:41:29 -0700 Subject: [PATCH] Update crt_core.c --- crt_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crt_core.c b/crt_core.c index 48d292e..389929d 100644 --- a/crt_core.c +++ b/crt_core.c @@ -320,12 +320,12 @@ crt_demodulate(struct CRT *v, int noise) huecs >>= 11; rn = v->rn; -#if (CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) +#if ((CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) && CRT_VHS_NOISE) line = ((rand() % 8) - 4) + 14; #endif for (i = 0; i < CRT_INPUT_SIZE; i++) { int nn = noise; -#if (CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) +#if ((CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) && CRT_VHS_NOISE) rn = rand(); if (i > (CRT_INPUT_SIZE - CRT_HRES * (16 + ((rand() % 20) - 10))) && i < (CRT_INPUT_SIZE - CRT_HRES * (5 + ((rand() % 8) - 4)))) {