diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-06 18:53:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-06 18:53:41 +0100 |
commit | e29bb5f295d055068a24b629fa1bd5f06a93431b (patch) | |
tree | a89dc5806844cffa625bfb451d55e0b582ded95f | |
parent | 0251f0951d8dcdd198912326c11489823989a3eb (diff) | |
download | cairo-e29bb5f295d055068a24b629fa1bd5f06a93431b.tar.gz |
win32: Use the image surface below the fallback when unmapping an HDC
As for a native window, the surface does not have an image delegate
itself but instead installs a fallback surface during map_to_image. So
during unmap_image, we then need to unmap from the fallback surface
instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/win32/cairo-win32-display-surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/cairo-win32-display-surface.c b/src/win32/cairo-win32-display-surface.c index 2c5374c4e..b0c2f903f 100644 --- a/src/win32/cairo-win32-display-surface.c +++ b/src/win32/cairo-win32-display-surface.c @@ -497,6 +497,7 @@ _cairo_win32_display_surface_unmap_image (void *abstract_surf __FUNCTION__, r.x, r.y, r.width, r.height)); surface->fallback->damage = _cairo_damage_add_rectangle (surface->fallback->damage, &r); + surface = to_win32_display_surface (surface->fallback); } return _cairo_surface_unmap_image (surface->image, image); |