diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_damage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_damage.h b/src/sna/sna_damage.h index 42edb105..9b6f2135 100644 --- a/src/sna/sna_damage.h +++ b/src/sna/sna_damage.h @@ -268,11 +268,11 @@ static inline void sna_damage_reduce_all(struct sna_damage **_damage, { struct sna_damage *damage = *_damage; - DBG(("%s(width=%d, height=%d)\n", __FUNCTION__, width, height)); - if (damage == NULL || DAMAGE_IS_ALL(damage)) return; + DBG(("%s(width=%d, height=%d)\n", __FUNCTION__, pixmap->drawable.width, pixmap->drawable.height)); + if (damage->mode == DAMAGE_ADD) { if (damage->extents.x1 <= 0 && damage->extents.y1 <= 0 && |