Skip to content

Commit

Permalink
Fix lines for real?
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Jan 15, 2024
1 parent a20760a commit 7270dc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arc-core/src/arc/graphics/g2d/Lines.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ public static void polyline(FloatSeq points, boolean wrap){
//implementation taken from https://github.com/earlygrey/shapedrawer/blob/master/drawer/src/space/earlygrey/shapedrawer/ShapeDrawer.java
public static void polyline(float[] points, int length, boolean wrap){
if(length < 4) return;
if(length == 4){ //line is faster and this method doesn't even work correctly with 2 items
line(points[0], points[1], points[2], points[3]);
return;
}
// if(length == 4){ //line is faster and this method doesn't even work correctly with 2 items
// line(points[0], points[1], points[2], points[3]);
// return;
// }

float halfWidth = 0.5f * stroke;

Expand Down

0 comments on commit 7270dc9

Please sign in to comment.