summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-xlib-surface.c')
-rw-r--r--src/cairo-xlib-surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index cf7497a6..4a5b88cd 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -3467,7 +3467,7 @@ cairo_xlib_surface_get_display (cairo_surface_t *abstract_surface)
return NULL;
}
- return ((cairo_xlib_display_t *) abstract_surface->device)->display;
+ return cairo_xlib_device_get_display (abstract_surface->device);
}
/**