This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Any obvious reason my first CNI function (xlib.GC.fillPolygon) doesn't work?
>>>>> "Scott" == Scott Gilbertson <scottg@mantatest.com> writes:
Scott> Is there an obvious gaffe in the following code?
Scott> std::vector<xpoint> points(nPoints+1);
Scott> XFillPolygon(dpy, drawableXID, gc, &(points.front()), nPoints, Complex,
Scott> CoordModeOrigin );
I don't know the STL. I assume casting points.front() like that is valid..?
I thought XFillPolygon handled the ends-not-the-same case itself?
It's been a long time since I used raw Xlib though.
Anyway, no, I see nothing obviously wrong. For things like this gdb
ought to work reasonably well.
Tom