diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-13 22:24:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-14 09:21:12 +0100 |
commit | ad4786b285074b5bd70b3ad0bea6ec1b77ad6740 (patch) | |
tree | aab0649444e06516357e3f77d69c6e22a4c06d84 /src/sna/sna_damage.h | |
parent | a05c3547bba52288bae872ea672ffe2f4dab2ffa (diff) |
sna: Aim for consistency and use stdbool except for core X APIs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.h')
-rw-r--r-- | src/sna/sna_damage.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_damage.h b/src/sna/sna_damage.h index 21db3e3f..5e800b7d 100644 --- a/src/sna/sna_damage.h +++ b/src/sna/sna_damage.h @@ -178,10 +178,10 @@ static inline void sna_damage_subtract_boxes(struct sna_damage **damage, assert(*damage == NULL || (*damage)->mode != DAMAGE_ALL); } -Bool _sna_damage_intersect(struct sna_damage *damage, +bool _sna_damage_intersect(struct sna_damage *damage, RegionPtr region, RegionPtr result); -static inline Bool sna_damage_intersect(struct sna_damage *damage, +static inline bool sna_damage_intersect(struct sna_damage *damage, RegionPtr region, RegionPtr result) { assert(damage); @@ -197,13 +197,13 @@ sna_damage_overlaps_box(const struct sna_damage *damage, { if (box->x2 <= damage->extents.x1 || box->x1 >= damage->extents.x2) - return FALSE; + return false; if (box->y2 <= damage->extents.y1 || box->y1 >= damage->extents.y2) - return FALSE; + return false; - return TRUE; + return true; } int _sna_damage_contains_box(struct sna_damage *damage, |