diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-15 19:48:07 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-15 19:48:07 +0000 |
commit | 83af31f0f31bee5570148f51d9371e848b716486 (patch) | |
tree | 4502f51288a93d0567c5fa04d42f76a1e2aa7a95 /src/win32 | |
parent | df608e0fab542562eb00b4f3c84735946289226a (diff) |
win32: Cast the surface to an image-surface to find its parent (compile fix)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/cairo-win32-display-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/cairo-win32-display-surface.c b/src/win32/cairo-win32-display-surface.c index ac37cbf0..43862aa3 100644 --- a/src/win32/cairo-win32-display-surface.c +++ b/src/win32/cairo-win32-display-surface.c @@ -407,7 +407,7 @@ _cairo_win32_display_surface_finish (void *abstract_surface) if (surface->image) { /* Unhook ourselves first to avoid the double-unref from the image */ - surface->image->parent = NULL; + to_image_surface(surface->image)->parent = NULL; cairo_surface_finish (surface->image); cairo_surface_destroy (surface->image); } |