From d206b967b063f9df163575dad3fdbc0e8f63e08d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 19 May 2023 02:08:18 -0700 Subject: modules/checkers: also set texture->frame_{width,height} These are expected to match, and it's asserted as such in various fragmenters. Especially now that we're getting more exuberant with recursive settings/modules, the correctness of the checkers cells fragment is becoming more exercised/important. --- src/modules/checkers/checkers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/modules/checkers/checkers.c b/src/modules/checkers/checkers.c index 6f5d9eb..f094402 100644 --- a/src/modules/checkers/checkers.c +++ b/src/modules/checkers/checkers.c @@ -289,6 +289,10 @@ static void checkers_render_fragment(til_module_context_t *context, til_stream_t /* now that state has been determined, set the frame size */ fragment->frame_width = ctxt->setup->size; fragment->frame_height = ctxt->setup->size; + if (fragment->texture) { + fragment->texture->frame_width = ctxt->setup->size; + fragment->texture->frame_height = ctxt->setup->size; + } switch (ctxt->setup->dynamics) { case CHECKERS_DYNAMICS_ODD: -- cgit v1.2.3