summaryrefslogtreecommitdiff
path: root/src/sna/sna_damage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_damage.h')
-rw-r--r--src/sna/sna_damage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sna/sna_damage.h b/src/sna/sna_damage.h
index 5fb9aef0..454ad84a 100644
--- a/src/sna/sna_damage.h
+++ b/src/sna/sna_damage.h
@@ -34,6 +34,16 @@ static inline void sna_damage_add_box(struct sna_damage **damage,
*damage = _sna_damage_add_box(*damage, box);
}
+struct sna_damage *_sna_damage_add_boxes(struct sna_damage *damage,
+ const BoxRec *box, int n,
+ int16_t dx, int16_t dy);
+static inline void sna_damage_add_boxes(struct sna_damage **damage,
+ const BoxRec *box, int n,
+ int16_t dx, int16_t dy)
+{
+ *damage = _sna_damage_add_boxes(*damage, box, n, dx, dy);
+}
+
struct sna_damage *_sna_damage_is_all(struct sna_damage *damage,
int width, int height);
static inline bool sna_damage_is_all(struct sna_damage **damage,