Skip to content

Commit

Permalink
path: Solve co-dependency problem
Browse files Browse the repository at this point in the history
FALSE and TRUE are defined in cairoint.h, but cairoint.h depends on
cairo-path-fixed-private.h, so just use 0/1 to avoid the depencency
loop.

Fixes a number of errors reported by 'make check'.
  • Loading branch information
Andrea Canciani committed Oct 30, 2010
1 parent 330b343 commit 22ea460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cairo-path-fixed-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ static inline cairo_bool_t
_cairo_path_fixed_fill_is_rectilinear (const cairo_path_fixed_t *path)
{
if (! path->fill_is_rectilinear)
return FALSE;
return 0;

if (! path->has_current_point || path->needs_move_to)
return TRUE;
return 1;

/* check whether the implicit close preserves the rectilinear property */
return path->current_point.x == path->last_move_point.x ||
Expand All @@ -171,10 +171,10 @@ static inline cairo_bool_t
_cairo_path_fixed_fill_maybe_region (const cairo_path_fixed_t *path)
{
if (! path->fill_maybe_region)
return FALSE;
return 0;

if (! path->has_current_point || path->needs_move_to)
return TRUE;
return 1;

/* check whether the implicit close preserves the rectilinear property
* (the integer point property is automatically preserved)
Expand Down

0 comments on commit 22ea460

Please sign in to comment.