summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-08-09 00:42:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-08-09 19:02:36 +0100
commitb823d4d28fa2d96bd9385809bf9b95466f922f16 (patch)
treed4c0ddbca8f4dac4e94d7d907e81517ca625ec62
parent17e34b6eab1faecf46795ae7bf51eee9ffea5d75 (diff)
tor: trivial changes
Some trivial cleanups that escaped my noticed during a tired review. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-tor-scan-converter.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/cairo-tor-scan-converter.c b/src/cairo-tor-scan-converter.c
index d4aa8a600..0b7a91749 100644
--- a/src/cairo-tor-scan-converter.c
+++ b/src/cairo-tor-scan-converter.c
@@ -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;
}
}
}