From c18c5a7b3f504fbeb4cd95d00a5a9241422894d5 Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Tue, 19 Nov 2024 16:55:06 -0300 Subject: [PATCH] PlatformGraphics: Fix small oversight on getTranslateX() It was returning the translation on the Y axis, not X axis. Fixes The Legend of Spyro: The Eternal Night --- src/org/recompile/mobile/PlatformGraphics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/recompile/mobile/PlatformGraphics.java b/src/org/recompile/mobile/PlatformGraphics.java index e6448e4c..bf2bf62d 100644 --- a/src/org/recompile/mobile/PlatformGraphics.java +++ b/src/org/recompile/mobile/PlatformGraphics.java @@ -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; }