mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-10 04:27:45 -05:00
sixel: debug: sixel image _may_ be zero-sized
For example, and single GNL (Graphical New Line) will result in a sixel with a non-zero height, but a zero width.
This commit is contained in:
parent
a2fa667f45
commit
75fd59df3f
1 changed files with 2 additions and 1 deletions
3
sixel.c
3
sixel.c
|
|
@ -613,7 +613,8 @@ sixel_overwrite(struct terminal *term, struct sixel *six,
|
|||
pixman_region32_t cell_intersection;
|
||||
pixman_region32_init(&cell_intersection);
|
||||
pixman_region32_intersect(&cell_intersection, &six_rect, &overwrite_rect);
|
||||
xassert(pixman_region32_not_empty(&cell_intersection));
|
||||
xassert(!pixman_region32_not_empty(&six_rect) ||
|
||||
pixman_region32_not_empty(&cell_intersection));
|
||||
pixman_region32_fini(&cell_intersection);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue