backdrop.comp: support stroked Annotated_Image and Annotated_BeginClip

Commit 8db77e180e added support for
strokes to FillImage and BeginClip, but missed backdrop.comp.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur 2021-03-30 17:16:01 +02:00
parent 678bfedfca
commit d916a9e2c4
3 changed files with 2 additions and 2 deletions

View file

@ -48,13 +48,13 @@ void main() {
if (element_ix < conf.n_elements) { if (element_ix < conf.n_elements) {
AnnotatedTag tag = Annotated_tag(conf.anno_alloc, ref); AnnotatedTag tag = Annotated_tag(conf.anno_alloc, ref);
switch (tag.tag) { switch (tag.tag) {
case Annotated_Image:
case Annotated_BeginClip:
case Annotated_Color: case Annotated_Color:
if (fill_mode_from_flags(tag.flags) != MODE_NONZERO) { if (fill_mode_from_flags(tag.flags) != MODE_NONZERO) {
break; break;
} }
// Fall through. // Fall through.
case Annotated_Image:
case Annotated_BeginClip:
PathRef path_ref = PathRef(conf.tile_alloc.offset + element_ix * Path_size); PathRef path_ref = PathRef(conf.tile_alloc.offset + element_ix * Path_size);
Path path = Path_read(conf.tile_alloc, path_ref); Path path = Path_read(conf.tile_alloc, path_ref);
sh_row_width[th_ix] = path.bbox.z - path.bbox.x; sh_row_width[th_ix] = path.bbox.z - path.bbox.x;

Binary file not shown.

Binary file not shown.