From a2947414fb4c08190d7f171ecc5d9ce9509f09c2 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 17 Dec 2020 15:28:31 -0800 Subject: [PATCH] Use equalsIgnoreCase when comparing entry values. --- gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java b/gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java index 21b2dbb6ef5..e0bea619391 100644 --- a/gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java +++ b/gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java @@ -76,11 +76,11 @@ public void parse (Page page) { pageFields.put("repeat", new Field() { public void parse (Page page) { String direction = entry[1]; - if (direction.equals("x")) + if (direction.equalsIgnoreCase("x")) page.uWrap = Repeat; - else if (direction.equals("y")) + else if (direction.equalsIgnoreCase("y")) page.vWrap = Repeat; - else if (direction.equals("xy")) { + else if (direction.equalsIgnoreCase("xy")) { page.uWrap = Repeat; page.vWrap = Repeat; } @@ -88,7 +88,7 @@ else if (direction.equals("xy")) { }); pageFields.put("pma", new Field() { public void parse (Page page) { - page.pma = entry[1].equals("true"); + page.pma = entry[1].equalsIgnoreCase("true"); } });