From 0db51f6eb973a106d1b7d96ad0ecd3e62d05d5b2 Mon Sep 17 00:00:00 2001 From: cloud_nine Date: Sat, 24 Feb 2024 10:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4defaultDeviceRotation?= =?UTF-8?q?=E5=BA=94=E4=B8=BA=E7=AB=96=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyunjiu --- dmserver/src/screen_rotation_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmserver/src/screen_rotation_controller.cpp b/dmserver/src/screen_rotation_controller.cpp index f2c8918a0d..a8f6185d05 100644 --- a/dmserver/src/screen_rotation_controller.cpp +++ b/dmserver/src/screen_rotation_controller.cpp @@ -349,7 +349,7 @@ void ScreenRotationController::ProcessRotationMapping() // 0 means PORTRAIT, 1 means LANDSCAPE. if (modes == nullptr) { - defaultDeviceRotation_ = 1; + defaultDeviceRotation_ = 0; WLOGFE("Get screen modes is nullptr."); } else { defaultDeviceRotation_ = (modes->width_ < modes->height_) ? 0 : 1; -- Gitee