From 3eaa89c8e9e1b20c7cd8d7e2ce600a62552dde3c Mon Sep 17 00:00:00 2001 From: LMP88959 <109979235+LMP88959@users.noreply.github.com> Date: Wed, 1 Feb 2023 20:42:14 -0800 Subject: [PATCH] Add byte pixel format --- crt_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crt_core.c b/crt_core.c index f6b3ff3..39864de 100644 --- a/crt_core.c +++ b/crt_core.c @@ -548,9 +548,8 @@ crt_demodulate(struct CRT *v, int noise) } /* duplicate extra lines */ - ln = v->outw * bpp; for (s = beg + 1; s < (end - v->scanlines); s++) { - memcpy(v->out + s * ln, v->out + (s - 1) * ln, ln); + memcpy(v->out + s * pitch, v->out + (s - 1) * pitch, pitch); } } }