Re: Compilation errors with MSVC after recent changes to 'cairo-path-stroke-traps.c'

John Emmas <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi Victor,

There's an official bug entry for this issue here, although your 
suggestion was already proposed by Hans Breuer:-

https://bugs.freedesktop.org/show_bug.cgi?id=84908

Having said that, you're now the fourth person who's proposed a solution 
for this problem - but sadly, there seems to be no interest upstream for 
implementing any of the suggestions.

I think we just need to accept now that cairo is no longer buildable 
with MSVC.

John


On 08/11/2014 08:27, Victor Osipkov wrote:
> please try this fix:
>
> 	} else {
> //		cairo_point_t t[] = { in->point, *inpt, *outpt }; vctos
> 		cairo_point_t t[] = { {in->point.x, in->point.y}, {inpt->x, inpt->y},
> {outpt->x, outpt->y} };
> //	    cairo_point_t e[] = { in->cw, in->ccw, out->cw, out->ccw }; vctos
> 		cairo_point_t e[] = { {in->cw.x, in->cw.y}, {in->ccw.x, in->ccw.y},
> {out->cw.x, out->cw.y}, {out->ccw.x, out->ccw.y} };
> 	    _cairo_traps_tessellate_triangle_with_edges (stroker->traps, t, e);
> 	}
>
> ****
>
>      case CAIRO_LINE_JOIN_BEVEL: {
> //	cairo_point_t t[] = { in->point, *inpt, *outpt }; // vctos
> //	cairo_point_t e[] = { in->cw, in->ccw, out->cw, out->ccw };
> 	cairo_point_t t[] = { {in->point.x, in->point.y}, {inpt->x, inpt->y},
> {outpt->x, outpt->y} };
> 	cairo_point_t e[] = { {in->cw.x, in->cw.y}, {in->ccw.x, in->ccw.y},
> {out->cw.x, out->cw.y}, {out->ccw.x, out->ccw.y} };
> 	_cairo_traps_tessellate_triangle_with_edges (stroker->traps, t, e);
> 	break;
>      }
>

-- 
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.