diff options
Diffstat (limited to 'examples/cairoview.c')
-rw-r--r-- | examples/cairoview.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/cairoview.c b/examples/cairoview.c index 356efd95..f0fe855a 100644 --- a/examples/cairoview.c +++ b/examples/cairoview.c @@ -136,6 +136,11 @@ update () /* Create a temporary pixmap and a Cairo context pointing to it */ extents = pixman_region_extents (update_region); + + pixmap = XCreatePixmap (display, window, + extents->x2 - extents->x1, + extents->y2 - extents->y1, + DefaultDepth (display, screen)); surface = cairo_xlib_surface_create_for_pixmap_with_visual (display, pixmap, DefaultVisual (display, screen)); |