mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 08:50:15 +01:00
tor: trivial changes
Some trivial cleanups that escaped my noticed during a tired review. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
17e34b6eab
commit
b823d4d28f
1 changed files with 5 additions and 9 deletions
|
|
@ -1398,13 +1398,11 @@ apply_nonzero_fill_rule_for_subrow (struct active_list *active,
|
|||
return cell_list_add_unbounded_subspan (coverages, xstart);
|
||||
|
||||
winding += edge->dir;
|
||||
if (0 == winding) {
|
||||
if (edge->next->x.quo != edge->x.quo)
|
||||
break;
|
||||
}
|
||||
if (0 == winding && edge->next->x.quo != edge->x.quo)
|
||||
break;
|
||||
}
|
||||
|
||||
cell_list_add_subspan (coverages, xstart, edge->x.quo);
|
||||
cell_list_add_subspan (coverages, xstart, edge->x.quo);
|
||||
edge = edge->next;
|
||||
}
|
||||
}
|
||||
|
|
@ -1697,10 +1695,8 @@ step_edges (struct active_list *active, int count)
|
|||
for (edge = active->head.next; edge != &active->tail; edge = edge->next) {
|
||||
edge->height_left -= count;
|
||||
if (! edge->height_left) {
|
||||
if (edge->prev)
|
||||
edge->prev->next = edge->next;
|
||||
if (edge->next)
|
||||
edge->next->prev = edge->prev;
|
||||
edge->prev->next = edge->next;
|
||||
edge->next->prev = edge->prev;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue