This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]