Works for me...
On Sunday, December 22, 2013 08:27:20 AM Andreas Lobinger wrote:
> Hello,
>
> it might be, i'm trying something strange here, but ...
>
> julia> using Cairo
>
> julia> c2 = CairoRGBSurface(100,100)
> CairoSurface(Ptr{Void} @0x0b4959c0,100.0,100.0,#undef)
>
> julia> c1 = CairoContext(c2)
> CairoContext(Ptr{Void} @0xb3305500,CairoSurface(Ptr{Void}
> @0x0b4959c0,100.0,100.0,#undef),Ptr{Void} @0x0c5bf840)
>
> julia> move_to(c1,100,100)
>
> julia> move_to(c1,100.5,100)
> ERROR: invalid base 10 digit '.' in "100.5"
>
> and yes, according to Cairo.jl the call seems to be:
>
> @eval begin
> $NAME(ctx::CairoContext, d0::Real, d1::Real) =
> ccall(($(Expr(:quote,FUNCTION)),_jl_libcairo),
> Void, (Ptr{Void},Float64,Float64), ctx.ptr, d0, d1)
> end
>
> so something with float.
>
> Wishing a happy day,
> Andreas