From cc982db0338476a71b8d2baa90bf9ac2c907e288 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 1 Oct 2024 16:17:20 +0200 Subject: [PATCH] Formatting --- .../esotericsoftware/spine/android/SkeletonRenderer.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spine-android/spine-android/src/main/java/com/esotericsoftware/spine/android/SkeletonRenderer.java b/spine-android/spine-android/src/main/java/com/esotericsoftware/spine/android/SkeletonRenderer.java index 29d59b361..61614bebd 100644 --- a/spine-android/spine-android/src/main/java/com/esotericsoftware/spine/android/SkeletonRenderer.java +++ b/spine-android/spine-android/src/main/java/com/esotericsoftware/spine/android/SkeletonRenderer.java @@ -248,16 +248,17 @@ public class SkeletonRenderer { RenderCommand command = commands.get(i); if (Build.VERSION.SDK_INT >= 29) { - canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, 0, - command.colors.items, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode)); + canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, + 0, command.colors.items, 0, command.indices.items, 0, command.indices.size, + command.texture.getPaint(command.blendMode)); } else { // See https://github.com/EsotericSoftware/spine-runtimes/issues/2638 int[] colors = command.colors.items; int[] colorsCopy = new int[command.vertices.size]; System.arraycopy(colors, 0, colorsCopy, 0, command.colors.size); - canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, 0, - colorsCopy, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode)); + canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, + 0, colorsCopy, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode)); } } }