diff options
author | Carl Worth <cworth@cworth.org> | 2003-10-04 09:06:15 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2003-10-04 09:06:15 +0000 |
commit | a249bd717c194d03d480d7803351ee6f21daf0c2 (patch) | |
tree | 067d0f8556f6505d2eaab9f5d260fa207664054a /src/cairo-polygon.c | |
parent | b466e068b99c71acd26ca10b8e70ad34c7e34881 (diff) |
Remove abbreviation of "point" as "pt". Fix cairo_destrot, cairo_set_target_surface, and cairo_set_target_image to act appropriately in the face of non-zero status.
Diffstat (limited to 'src/cairo-polygon.c')
-rw-r--r-- | src/cairo-polygon.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/cairo-polygon.c b/src/cairo-polygon.c index ba05b70c..8263701f 100644 --- a/src/cairo-polygon.c +++ b/src/cairo-polygon.c @@ -36,7 +36,7 @@ static cairo_status_t _cairo_polygon_grow_by (cairo_polygon_t *polygon, int additional); static void -_cairo_polygon_set_last_point (cairo_polygon_t *polygon, cairo_point_t *pt); +_cairo_polygon_set_last_point (cairo_polygon_t *polygon, cairo_point_t *point); void _cairo_polygon_init (cairo_polygon_t *polygon) @@ -46,8 +46,8 @@ _cairo_polygon_init (cairo_polygon_t *polygon) polygon->edges_size = 0; polygon->edges = NULL; - polygon->first_pt_defined = 0; - polygon->last_pt_defined = 0; + polygon->first_point_defined = 0; + polygon->last_point_defined = 0; polygon->closed = 0; } @@ -62,8 +62,8 @@ _cairo_polygon_fini (cairo_polygon_t *polygon) polygon->num_edges = 0; } - polygon->first_pt_defined = 0; - polygon->last_pt_defined = 0; + polygon->first_point_defined = 0; + polygon->last_point_defined = 0; polygon->closed = 0; } @@ -93,10 +93,10 @@ _cairo_polygon_grow_by (cairo_polygon_t *polygon, int additional) } static void -_cairo_polygon_set_last_point (cairo_polygon_t *polygon, cairo_point_t *pt) +_cairo_polygon_set_last_point (cairo_polygon_t *polygon, cairo_point_t *point) { - polygon->last_pt = *pt; - polygon->last_pt_defined = 1; + polygon->last_point = *point; + polygon->last_point_defined = 1; } cairo_status_t @@ -105,9 +105,9 @@ _cairo_polygon_add_edge (cairo_polygon_t *polygon, cairo_point_t *p1, cairo_poin cairo_status_t status; cairo_edge_t *edge; - if (! polygon->first_pt_defined) { - polygon->first_pt = *p1; - polygon->first_pt_defined = 1; + if (! polygon->first_point_defined) { + polygon->first_point = *p1; + polygon->first_point_defined = 1; polygon->closed = 0; } @@ -143,14 +143,14 @@ _cairo_polygon_add_edge (cairo_polygon_t *polygon, cairo_point_t *p1, cairo_poin } cairo_status_t -_cairo_polygon_add_point (cairo_polygon_t *polygon, cairo_point_t *pt) +_cairo_polygon_add_point (cairo_polygon_t *polygon, cairo_point_t *point) { cairo_status_t status = CAIRO_STATUS_SUCCESS; - if (polygon->last_pt_defined) { - status = _cairo_polygon_add_edge (polygon, &polygon->last_pt, pt); + if (polygon->last_point_defined) { + status = _cairo_polygon_add_edge (polygon, &polygon->last_point, point); } else { - _cairo_polygon_set_last_point (polygon, pt); + _cairo_polygon_set_last_point (polygon, point); } return status; @@ -161,13 +161,13 @@ _cairo_polygon_close (cairo_polygon_t *polygon) { cairo_status_t status; - if (polygon->closed == 0 && polygon->last_pt_defined) { - status = _cairo_polygon_add_edge (polygon, &polygon->last_pt, &polygon->first_pt); + if (polygon->closed == 0 && polygon->last_point_defined) { + status = _cairo_polygon_add_edge (polygon, &polygon->last_point, &polygon->first_point); if (status) return status; polygon->closed = 1; - polygon->first_pt_defined = 0; + polygon->first_point_defined = 0; } return CAIRO_STATUS_SUCCESS; |