Skip to content

Commit

Permalink
PlatformGraphics: Fix small oversight on getTranslateX()
Browse files Browse the repository at this point in the history
It was returning the translation on the Y axis, not X axis.

Fixes The Legend of Spyro: The Eternal Night
  • Loading branch information
AShiningRay committed Nov 19, 2024
1 parent 951ae69 commit c18c5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/recompile/mobile/PlatformGraphics.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public void clipRect(int x, int y, int width, int height)
clipHeight = (int)rect.getHeight();
}

public int getTranslateX() { return translateY; }
public int getTranslateX() { return translateX; }

public int getTranslateY() { return translateY; }

Expand Down

0 comments on commit c18c5a7

Please sign in to comment.