[cairo-commit] src/win32

Chris Wilson ickle at kemper.freedesktop.org
Fri Oct 5 06:56:48 PDT 2012


 src/win32/cairo-win32-display-surface.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6c6a69761048cfad210160035ae32ccb49967d5d
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Oct 5 14:55:28 2012 +0100

    win32: Compile fix for mismatched surface types
    
    win32/cairo-win32-display-surface.c:472: error: structure has no member
    named 'base'
    
    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 5353fd5..2c5374c 100644
--- a/src/win32/cairo-win32-display-surface.c
+++ b/src/win32/cairo-win32-display-surface.c
@@ -464,7 +464,7 @@ _cairo_win32_display_surface_map_to_image (void                    *abstract_sur
     surface = to_win32_display_surface (surface->fallback);
 done:
     GdiFlush();
-    return _cairo_surface_map_to_image (&surface->image->base, extents);
+    return _cairo_surface_map_to_image (surface->image, extents);
 
 err:
     cairo_surface_destroy (surface->fallback);
@@ -499,7 +499,7 @@ _cairo_win32_display_surface_unmap_image (void                    *abstract_surf
 	    _cairo_damage_add_rectangle (surface->fallback->damage, &r);
     }
 
-    return _cairo_surface_unmap_image (&surface->image->base, image);
+    return _cairo_surface_unmap_image (surface->image, image);
 }
 
 static cairo_status_t


More information about the cairo-commit mailing list