summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-05 14:50:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-05 16:00:20 +0100
commitc7efe88a895a692e5f840562a09dac385508db57 (patch)
treed9904ae588d1bd6e0af0ff7b4f9a6c839203a798
parent9566fc0ccc71bc4fcd6bf83b567a41cc5366f5ee (diff)
sna: Fix DBG compilation
Update the DBG to reflect the new arguments to sna_damage_reduce_all() Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_damage.h4
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 &&