[cairo] Nit about [cairo_curve_to] with no current point
Behdad Esfahbod
behdad at behdad.org
Mon Jun 2 09:24:51 PDT 2008
On Mon, 2008-06-02 at 08:37 -0700, Carl Worth wrote:
> On Sun, 01 Jun 2008 19:11:31 -0400, Behdad Esfahbod wrote:
> >
> > The docs say (and code does):
> >
> > * If there is no current point before the call to cairo_curve_to()
> > * this function will behave as if preceded by a call to
> > * cairo_move_to(@cr, @x1, @y1).
> >
> > But that sounds quite undesirable to me. Compatibility aside, should it
> > have been cairo_move_to(@cr, @x3, @y3) instead?
>
> What?
>
> Why would you want a curve from x3,y3 through x1,y1 then x2,y2 and
> back to x3,y3?
No, I meant the entire curve_to operation should be replaced by a
move_to to the final point. No curves for you.
> -Carl
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list