diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-11-22 08:31:23 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-11-22 08:31:23 -0800 |
commit | f84f3672f17f0e52abb894129446d71084b64a0b (patch) | |
tree | 5502d113f371e9fddb437884a21f19335b39b3d0 /src | |
parent | 40551dcfadf1c6ef1a1d80ad08d35ef4b9557c66 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/mixer/mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |