[cairo] cairo-win32-display-surface.c(467) : error C2039: 'base' : is not a member of '_cairo_surface'

Chris Wilson chris at chris-wilson.co.uk
Sun Jun 24 04:34:45 PDT 2012


On Sun, 24 Jun 2012 13:10:08 +0200, Hans Breuer <hans at breuer.org> wrote:
> Just tried to build cairo 1.12 from git myself, but it fails with:
> 
> win32\cairo-win32-display-surface.c(467) : error C2039: 'base' : is not a 
> member of '_cairo_surface'
>          D:\Devel\from-git\cairo\src\cairo-surface-private.h(51) : see 
> declaration of '_cairo_surface'
> diff --git a/src/win32/cairo-win32-display-surface.c 
> b/src/win32/cairo-win32-display-surface.c
> index 0d4c5f9..880de00 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->win32.base, extents);

Can you try

+    return _cairo_surface_map_to_image (surface->image, extents);

instead?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list