src/share/classes/sun/java2d/pipe/PixelToShapeConverter.java

Print this page

        

*** 101,117 **** private Shape makePoly(int xPoints[], int yPoints[], int nPoints, boolean close) { GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if (nPoints > 0) { gp.moveTo(xPoints[0], yPoints[0]); - } for (int i = 1; i < nPoints; i++) { gp.lineTo(xPoints[i], yPoints[i]); } if (close) { gp.closePath(); } return gp; } public void drawPolyline(SunGraphics2D sg, int xPoints[], int yPoints[], --- 101,117 ---- private Shape makePoly(int xPoints[], int yPoints[], int nPoints, boolean close) { GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if (nPoints > 0) { gp.moveTo(xPoints[0], yPoints[0]); for (int i = 1; i < nPoints; i++) { gp.lineTo(xPoints[i], yPoints[i]); } if (close) { gp.closePath(); } + } return gp; } public void drawPolyline(SunGraphics2D sg, int xPoints[], int yPoints[],