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-path-bounds.c | |
parent | b466e068b99c71acd26ca10b8e70ad34c7e34881 (diff) | |
download | cairo-a249bd717c194d03d480d7803351ee6f21daf0c2.tar.gz |
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-path-bounds.c')
-rw-r--r-- | src/cairo-path-bounds.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/cairo-path-bounds.c b/src/cairo-path-bounds.c index b8642f0a6..94eb6a451 100644 --- a/src/cairo-path-bounds.c +++ b/src/cairo-path-bounds.c @@ -28,7 +28,7 @@ #include "cairoint.h" typedef struct cairo_path_bounder { - int has_pt; + int has_point; cairo_fixed_t min_x; cairo_fixed_t min_y; @@ -43,7 +43,7 @@ static void _cairo_path_bounder_fini (cairo_path_bounder_t *bounder); static cairo_status_t -_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *pt); +_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *point); static cairo_status_t _cairo_path_bounder_add_edge (void *closure, cairo_point_t *p1, cairo_point_t *p2); @@ -62,37 +62,37 @@ _cairo_path_bounder_done_path (void *closure); static void _cairo_path_bounder_init (cairo_path_bounder_t *bounder) { - bounder->has_pt = 0; + bounder->has_point = 0; } static void _cairo_path_bounder_fini (cairo_path_bounder_t *bounder) { - bounder->has_pt = 0; + bounder->has_point = 0; } static cairo_status_t -_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *pt) +_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *point) { - if (bounder->has_pt) { - if (pt->x < bounder->min_x) - bounder->min_x = pt->x; + if (bounder->has_point) { + if (point->x < bounder->min_x) + bounder->min_x = point->x; - if (pt->y < bounder->min_y) - bounder->min_y = pt->y; + if (point->y < bounder->min_y) + bounder->min_y = point->y; - if (pt->x > bounder->max_x) - bounder->max_x = pt->x; + if (point->x > bounder->max_x) + bounder->max_x = point->x; - if (pt->y > bounder->max_y) - bounder->max_y = pt->y; + if (point->y > bounder->max_y) + bounder->max_y = point->y; } else { - bounder->min_x = pt->x; - bounder->min_y = pt->y; - bounder->max_x = pt->x; - bounder->max_y = pt->y; + bounder->min_x = point->x; + bounder->min_y = point->y; + bounder->max_x = point->x; + bounder->max_y = point->y; - bounder->has_pt = 1; + bounder->has_point = 1; } return CAIRO_STATUS_SUCCESS; |