summaryrefslogtreecommitdiff
path: root/src/libs/txt/txt.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-06-09 09:29:45 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-06-10 20:59:03 -0700
commitbb8a7ae77660d2e525b1724282a7998a87d3cbf3 (patch)
treed876181e1210868cc2c89482252e2d262239e2aa /src/libs/txt/txt.h
parent36171134c5ea8d78849f1009bae14e83c9b8feec (diff)
modules/blinds: use til_fb_put_pixel_checked()
While testing an experimental checkers w/fill_module=blinds with ASAN it became clear this module is making flawed assumptions about fragment->frame_{width,height} and fragment->{width,height} being equal. When used by checkers for filling cells, there are situations where the edge cell fragments need to describe a frame slightly larger than the drawn area, because the cell size doesn't align perfectly to the overall window/screen dimensions. So in these cases the synthesized frame will still be a full cell's dimensions while the width,height serve to clip within that area. If modules aren't properly clipping their rendering, instead just using frame_{width,height}, then they will have to use the _checked() variants to ensure clipping occurs properly on a per-pixel (slower) basis.
Diffstat (limited to 'src/libs/txt/txt.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved