Any obvious reason my first CNI function (xlib.GC.fillPolygon) doesn't work?

Tom Tromey tromey@redhat.com
Thu Nov 28 19:51:00 GMT 2002


>>>>> "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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /