Skip to content

Commit

Permalink
Update crt_core.c
Browse files Browse the repository at this point in the history
  • Loading branch information
LMP88959 authored Jan 29, 2023
1 parent a83e5c1 commit 3340a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crt_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ crt_demodulate(struct CRT *v, int noise)
ypos = POSMOD(line + v->vsync + ynudge, CRT_VRES);
pos = xpos + ypos * CRT_HRES;

ccr = v->ccf[ypos & 3];
ccr = v->ccf[ypos % v->cc_period];
sig = v->inp + ln + (v->hsync & ~3); /* burst @ 1/CB_FREQ sample rate */
for (i = CB_BEG; i < CB_BEG + (CB_CYCLES * CRT_CB_FREQ); i++) {
int p, n;
Expand Down

0 comments on commit 3340a29

Please sign in to comment.