From f84f3672f17f0e52abb894129446d71084b64a0b Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 22 Nov 2023 08:31:23 -0800 Subject: modules/mixer: fix direction of new interlace style This was accidentally inverted, which is especially annoying when experimenting with styles - the T value should be equivalent regardless of mixer style. Trivial fix. --- src/modules/mixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mixer/mixer.c b/src/modules/mixer/mixer.c index fb62daf..fe96b1f 100644 --- a/src/modules/mixer/mixer.c +++ b/src/modules/mixer/mixer.c @@ -297,7 +297,7 @@ static void mixer_render_fragment(til_module_context_t *context, til_stream_t *s for (unsigned y = 0; y < fragment->height; y++) { float r = randf(&ctxt->seeds[cpu].state); - if (r > T) { + if (r < T) { til_fb_fragment_copy(fragment, 0, fragment->x, fragment->y + y, fragment->width, 1, snapshot_b); } else { til_fb_fragment_copy(fragment, 0, fragment->x, fragment->y + y, fragment->width, 1, snapshot_a); -- cgit v1.2.3