[cairo-commit] src/win32

Chris Wilson ickle at kemper.freedesktop.org
Sat Oct 6 10:56:50 PDT 2012

 src/win32/cairo-win32-display-surface.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e29bb5f295d055068a24b629fa1bd5f06a93431b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Oct 6 18:53:41 2012 +0100

    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
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/win32/cairo-win32-display-surface.c b/src/win32/cairo-win32-display-surface.c
index 2c5374c..b0c2f90 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);

More information about the cairo-commit mailing list