On 16/12/2014 10:58, Donn wrote:
> Hi,
> Not sure if I've found a bug or am simply thick. I'm going with the
> latter :D
>
> At: https://git.gnome.org/browse/vala/plain/vapi/cairo.vapi
> Down near the end, under the public struct Matrix, look for:
>
> public void multiply (Matrix a, Matrix b);
>
> In the Cairo C docs, it looks like this:
> void cairo_matrix_multiply (
> cairo_matrix_t *result,
> const cairo_matrix_t *a,
> const cairo_matrix_t *b);
>
> So, there's an initial arg that is a ref in which to receive the new
> matrix. Is the vapi missing something?

.multiply() is a method of Mmatrix. Therefore you call multiply on an
instance of Matrix which is the one that will get modified.
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to