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

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <1340537719_56577@CP5-2952>
On Sun, 24 Jun 2012 13:10:08 +0200, Hans Breuer <[email protected]> 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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.