From 6e72b655cd44828ce15a84b1adb38f5b63634f3e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 24 Jul 2022 03:23:35 -0700 Subject: modules/stars: more fast and nasty fragment clip to frame fixes s/unchecked/checked/ and use frame dimensions, probably more fixes needed but this prevents crashing as checkers fill_module= at least. --- src/modules/stars/stars.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c index 665534a..3a3f90f 100644 --- a/src/modules/stars/stars.c +++ b/src/modules/stars/stars.c @@ -116,7 +116,7 @@ static void stars_render_fragment(til_module_context_t *context, unsigned ticks, struct points* tmp_ptr; struct points* last_ptr=NULL; float x, y, pos_x, pos_y, rot_x, rot_y, opacity, x_mult, y_mult, max_radius; - int width = fragment->width, height = fragment->height; + int width = fragment->frame_width, height = fragment->frame_height; if(width>height) { x_mult=1.f; @@ -162,7 +162,7 @@ static void stars_render_fragment(til_module_context_t *context, unsigned ticks, opacity = 1; if (pos_x>0 && pos_x0 && pos_y