From 1cd2b0a57c7ad2afa3a555d8dfe549268c1896e8 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 11 May 2026 15:46:31 +0200 Subject: [PATCH] Flip rotation-correction angles for both landscape orientations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring back the v1.1.9 approach (apply an inverse rotation to the texcoord sampling pattern so the camera image stays world-aligned through device rotation), but with the right signs this time. The previous angles were 180° off for both landscape orientations and showed the camera content upside-down on a real device. Verified each Display.rotation against the emulator's virtual scene (sky-yellow → road-brown → buildings-dark): the sky/yellow band now sits at the top of the screen in all four orientations. Bump to 1.1.11. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../main/java/no/naiv/tiltshift/effect/TiltShiftRenderer.kt | 4 ++-- version.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/no/naiv/tiltshift/effect/TiltShiftRenderer.kt b/app/src/main/java/no/naiv/tiltshift/effect/TiltShiftRenderer.kt index e8ff4bd..f7f247e 100644 --- a/app/src/main/java/no/naiv/tiltshift/effect/TiltShiftRenderer.kt +++ b/app/src/main/java/no/naiv/tiltshift/effect/TiltShiftRenderer.kt @@ -219,9 +219,9 @@ class TiltShiftRenderer( // -activityAngle puts the world-aligned point originally at screen P // at the same screen P after the activity has rotated. val angle = when (displayRotation) { - Surface.ROTATION_90 -> -90f + Surface.ROTATION_90 -> 90f Surface.ROTATION_180 -> 180f - Surface.ROTATION_270 -> 90f + Surface.ROTATION_270 -> -90f else -> 0f } if (angle == 0f) { diff --git a/version.properties b/version.properties index 34449a3..6ca2659 100644 --- a/version.properties +++ b/version.properties @@ -1,4 +1,4 @@ versionMajor=1 versionMinor=1 -versionPatch=9 -versionCode=11 +versionPatch=11 +versionCode=13