Skip to content

Commit ce6bb9a

Browse files
committed
fixed Tools.getCutoutDimensions
1 parent 6b456a0 commit ce6bb9a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extension/androidtools/Tools.hx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ class Tools
163163

164164
if (topJNI != null && leftJNI != null && rightJNI != null && bottomJNI != null)
165165
{
166-
final rectangle:Rectangle = new Rectangle();
167-
rectangle.top = topJNI.get(rectangle);
168-
rectangle.left = leftJNI.get(rectangle);
169-
rectangle.right = rightJNI.get(rectangle);
170-
rectangle.bottom = bottomJNI.get(rectangle);
171-
rectangles.push(rectangle);
166+
final top:Int = topJNI.get(rectangle);
167+
final left:Int = leftJNI.get(rectangle);
168+
final right:Int = rightJNI.get(rectangle);
169+
final bottom:Int = bottomJNI.get(rectangle);
170+
171+
rectangles.push(new Rectangle(left, top, right - left, bottom - top));
172172
}
173173
}
174174

0 commit comments

Comments
 (0)