From d0d6356f37deff57b512622e01dfa1c47ab593cd Mon Sep 17 00:00:00 2001 From: barry <870709867@qq.com> Date: Fri, 6 Dec 2024 23:43:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E9=85=8D3.0.2=E7=9A=84?= =?UTF-8?q?=E9=94=81=E5=AE=9A=E9=87=87=E9=9B=86=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/QtScrcpyCore | 2 +- QtScrcpy/ui/dialog.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/QtScrcpy/QtScrcpyCore b/QtScrcpy/QtScrcpyCore index 81647c6..eb8b783 160000 --- a/QtScrcpy/QtScrcpyCore +++ b/QtScrcpy/QtScrcpyCore @@ -1 +1 @@ -Subproject commit 81647c6a17f34d9a4344bcf1f048badeac435e54 +Subproject commit eb8b7837b18d4d2c13276d90884feb7f1c37d7ba diff --git a/QtScrcpy/ui/dialog.cpp b/QtScrcpy/ui/dialog.cpp index dfedcfb..493060c 100644 --- a/QtScrcpy/ui/dialog.cpp +++ b/QtScrcpy/ui/dialog.cpp @@ -311,7 +311,10 @@ void Dialog::on_startServerBtn_clicked() params.useReverse = ui->useReverseCheck->isChecked(); params.display = !ui->notDisplayCheck->isChecked(); params.renderExpiredFrames = Config::getInstance().getRenderExpiredFrames(); - params.lockVideoOrientation = ui->lockOrientationBox->currentIndex() - 1; + if (ui->lockOrientationBox->currentIndex() > 0) { + params.captureOrientationLock = 1; + params.captureOrientation = (ui->lockOrientationBox->currentIndex() - 1) * 90; + } params.stayAwake = ui->stayAwakeCheck->isChecked(); params.recordFile = ui->recordScreenCheck->isChecked(); params.recordPath = ui->recordPathEdt->text().trimmed();