DrawSpline, help

Alex Bligh alex at alex.org.uk
Fri Aug 4 14:33:04 PDT 2006


Tomasz Sienkiewicz wrote:
>  wxPoint pointy[pointsCount-1];

That should be "pointsCount" I think.

>            dc.DrawSpline(WXSIZEOF(pointy),pointy);

I think that should be
   dc.DrawSpline(pointsCount, pointy);

but I don't understand why you are going to all this
bother since wxDC::DrawSpline will take a wxList of
points as an argument anyway.

why not just do
   dc.DrawSpline(&points_list);

or have I missed something subtle?

Alex




More information about the wx-users mailing list