From 08929d7d64e5c70626431353b7d2564864bec832 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sun, 17 Jul 2022 21:34:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=9B=E4=B8=80=E6=AD=A5=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=88=86=E8=BE=A8=E7=8E=87=EF=BC=8C=E4=B8=A5=E6=A0=BC?= =?UTF-8?q?=E8=A6=81=E6=B1=82=2016:9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1203 --- src/MeoAssistant/Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index d00c7b204f..4358c31b4a 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -1085,7 +1085,7 @@ bool asst::Controller::connect(const std::string& adb_path, const std::string& a return false; } else if (std::fabs(static_cast(WindowWidthDefault) / static_cast(WindowHeightDefault) - - static_cast(m_width) / static_cast(m_height)) > 0.1) { + - static_cast(m_width) / static_cast(m_height)) > 1e-7) { info["what"] = "UnsupportedResolution"; info["why"] = "Not 16:9"; m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);