Skip to content

Commit

Permalink
Use equalsIgnoreCase when comparing entry values.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Dec 17, 2020
1 parent 21a8407 commit a294741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java
Expand Up @@ -76,19 +76,19 @@ public void parse (Page page) {
pageFields.put("repeat", new Field<Page>() {
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;
}
}
});
pageFields.put("pma", new Field<Page>() {
public void parse (Page page) {
page.pma = entry[1].equals("true");
page.pma = entry[1].equalsIgnoreCase("true");
}
});

Expand Down

0 comments on commit a294741

Please sign in to comment.