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

John Emmas johne53 at tiscali.co.uk
Sat Nov 8 01:27:25 PST 2014


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;
>      }
>



More information about the cairo mailing list