I made the assumption that int args passed for double parameters would be converted to doubles. For example
I am calling: make_line(root, "hi", 5,5,50,50);
on:
GooCanvasItem * make_line(GooCanvasItem * parent, char * name, gdouble x1, gdouble y1, gdouble x2, gdouble y2)
{
printf("from make line: %f %f %f %f\n", x1, y1, x2, y2);
//...
}
the printf
produces:
from make line: 0.000000 0.000000 0.000000 0.000000
when I call it with
make_line(root, "hi", 5.0,5.0,50.0,50.0);
it gives the correct output.
Changing gdouble
to double
doesn't seem to fix the problem.