mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-31 00:30:43 +01:00
Fix mis-indented _cairo_traps_init_box
This commit is contained in:
parent
57188b4dcb
commit
5c95800cde
1 changed files with 18 additions and 18 deletions
|
|
@ -87,26 +87,26 @@ cairo_status_t
|
|||
_cairo_traps_init_box (cairo_traps_t *traps,
|
||||
cairo_box_t *box)
|
||||
{
|
||||
_cairo_traps_init (traps);
|
||||
_cairo_traps_init (traps);
|
||||
|
||||
traps->status = _cairo_traps_grow (traps);
|
||||
if (traps->status)
|
||||
return traps->status;
|
||||
|
||||
traps->num_traps = 1;
|
||||
|
||||
traps->traps[0].top = box->p1.y;
|
||||
traps->traps[0].bottom = box->p2.y;
|
||||
traps->traps[0].left.p1 = box->p1;
|
||||
traps->traps[0].left.p2.x = box->p1.x;
|
||||
traps->traps[0].left.p2.y = box->p2.y;
|
||||
traps->traps[0].right.p1.x = box->p2.x;
|
||||
traps->traps[0].right.p1.y = box->p1.y;
|
||||
traps->traps[0].right.p2 = box->p2;
|
||||
|
||||
traps->extents = *box;
|
||||
|
||||
traps->status = _cairo_traps_grow (traps);
|
||||
if (traps->status)
|
||||
return traps->status;
|
||||
|
||||
traps->num_traps = 1;
|
||||
|
||||
traps->traps[0].top = box->p1.y;
|
||||
traps->traps[0].bottom = box->p2.y;
|
||||
traps->traps[0].left.p1 = box->p1;
|
||||
traps->traps[0].left.p2.x = box->p1.x;
|
||||
traps->traps[0].left.p2.y = box->p2.y;
|
||||
traps->traps[0].right.p1.x = box->p2.x;
|
||||
traps->traps[0].right.p1.y = box->p1.y;
|
||||
traps->traps[0].right.p2 = box->p2;
|
||||
|
||||
traps->extents = *box;
|
||||
|
||||
return traps->status;
|
||||
}
|
||||
|
||||
cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue