minor performance improvement
1 files changed, 3 insertions(+), 3 deletions(-)

M core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java
M core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java +3 -3
@@ 208,9 208,9 @@ public class JigsawPuzzle {
 		public void setDrawable(Drawable drawable) {
 			super.setDrawable(drawable);
 			if(drawable instanceof PolygonRegionDrawable) {
-				float[] vertices = ((PolygonRegionDrawable) drawable).getRegion().getVertices();
-				slotX = GeometryUtils.minX(vertices);
-				slotY = GeometryUtils.minY(vertices);
+				PolygonRegionDrawable pd = (PolygonRegionDrawable) drawable;
+				slotX = pd.getPolygonX();
+				slotY = pd.getPolygonY();
 			} else
 				slotX = slotY = 0;
 		}