From bcbb7d59949e0e14de7fffb22fac26c0fa8c10da Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Tue, 13 Jul 2021 10:59:04 +0900 Subject: [PATCH] viewer: fixed manual screen rotation to follow sensor --- lib/services/window_service.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/services/window_service.dart b/lib/services/window_service.dart index 53659781b..e57646486 100644 --- a/lib/services/window_service.dart +++ b/lib/services/window_service.dart @@ -41,12 +41,12 @@ class PlatformWindowService implements WindowService { late final int orientationCode; switch (orientation) { case Orientation.landscape: - // SCREEN_ORIENTATION_USER_LANDSCAPE - orientationCode = 11; + // SCREEN_ORIENTATION_SENSOR_LANDSCAPE + orientationCode = 6; break; case Orientation.portrait: - // SCREEN_ORIENTATION_USER_PORTRAIT - orientationCode = 12; + // SCREEN_ORIENTATION_SENSOR_PORTRAIT + orientationCode = 7; break; default: // SCREEN_ORIENTATION_UNSPECIFIED