[metacity] compositor: simplify add_damage
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: simplify add_damage
- Date: Sat, 4 Mar 2017 16:50:56 +0000 (UTC)
commit 598fc3a1724c229e598f14c5a318541c2784c862
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 4 18:42:29 2017 +0200
compositor: simplify add_damage
src/compositor/meta-compositor-xrender.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index d38b0bd..296e08d 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1786,9 +1786,7 @@ static void
add_damage (MetaCompositorXRender *xrender,
XserverRegion damage)
{
- MetaCompositor *compositor = META_COMPOSITOR (xrender);
- MetaDisplay *display = meta_compositor_get_display (compositor);
- Display *xdisplay = meta_display_get_xdisplay (display);
+ Display *xdisplay = xrender->xdisplay;
/* dump_xserver_region (xrender, "add_damage", damage); */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]