OS.LineTo((short)pointArray[0], (short)pointArray[1]);
public void add (int[] pointArray) {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (pointArray == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (pointArray.length < 2) return;	int polyRgn = OS.NewRgn();	OS.OpenRgn();	OS.MoveTo((short)pointArray[0], (short)pointArray[1]);	for (int i = 1; i < pointArray.length / 2; i++) {		OS.LineTo((short)pointArray[2 * i], (short)pointArray[2 * i + 1]);	}	OS.LineTo((short)pointArray[0], (short)pointArray[1]);	OS.CloseRgn(polyRgn);	OS.UnionRgn(handle, polyRgn, handle);	OS.DisposeRgn(polyRgn);}