We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tools.getCutoutDimensions
1 parent 6b456a0 commit ce6bb9aCopy full SHA for ce6bb9a
extension/androidtools/Tools.hx
@@ -163,12 +163,12 @@ class Tools
163
164
if (topJNI != null && leftJNI != null && rightJNI != null && bottomJNI != null)
165
{
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);
+ final top:Int = topJNI.get(rectangle);
+ final left:Int = leftJNI.get(rectangle);
+ final right:Int = rightJNI.get(rectangle);
+ final bottom:Int = bottomJNI.get(rectangle);
+
+ rectangles.push(new Rectangle(left, top, right - left, bottom - top));
172
}
173
174
0 commit comments