diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-05 12:26:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-05 13:58:27 +0100 |
commit | 9566fc0ccc71bc4fcd6bf83b567a41cc5366f5ee (patch) | |
tree | cb78754fc20bc549d87b2fae8920bf1a688df6f9 /src/sna/sna_display.c | |
parent | 1327918f91dce2051b809594db5a3ed555934612 (diff) |
sna: Curry parameters to sna_damage_all()
It is far easily to pass the PixmapPtr into the function and have it
pluck out the width and height than do so in all callers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r-- | src/sna/sna_display.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 470db869..46fc22c8 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3306,10 +3306,7 @@ static void copy_front(struct sna *sna, PixmapPtr old, PixmapPtr new) } } - if (!DAMAGE_IS_ALL(new_priv->gpu_damage)) - sna_damage_all(&new_priv->gpu_damage, - new->drawable.width, - new->drawable.height); + sna_damage_all(&new_priv->gpu_damage, new); } static Bool |