diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-05-19 02:08:18 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-05-19 02:12:14 -0700 |
commit | d206b967b063f9df163575dad3fdbc0e8f63e08d (patch) | |
tree | 241b1906ab543a51e35b1548671b8a3d0b3bf5a4 /src/modules/checkers | |
parent | 86249a9748eda6735c461f54e9085b1e17da51fd (diff) |
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.
Diffstat (limited to 'src/modules/checkers')
-rw-r--r-- | src/modules/checkers/checkers.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |