From dd743ad5575f0e9453f81b1ae778b48c9549b069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=97=AD?= Date: Wed, 23 Feb 2022 16:13:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=AF=E7=94=A8=E2=80=9C=E5=9C=A8=203?= =?UTF-8?q?D=20=E6=B8=B8=E6=88=8F=E4=B8=AD=E9=99=90=E5=88=B6=E5=85=89?= =?UTF-8?q?=E6=A0=87=E2=80=9D=E6=97=B6=E4=B8=8D=E4=BD=BF=E7=94=A8=E5=A4=9A?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=20fixes=20#321?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/App.cpp b/Runtime/App.cpp index 824a4395a..0f30434bb 100644 --- a/Runtime/App.cpp +++ b/Runtime/App.cpp @@ -366,8 +366,8 @@ bool App::_CreateHostWnd() { } // 主窗口没有覆盖 Virtual Screen 则使用多屏幕模式 - // 打开断点模式时不使用多屏幕模式 - _isMultiMonitorMode = !IsBreakpointMode() && GetMultiMonitorUsage() != 2 && + // 启用“在 3D 游戏中限制光标”或断点模式时不使用多屏幕模式 + _isMultiMonitorMode = !IsConfineCursorIn3DGames() && !IsBreakpointMode() && GetMultiMonitorUsage() != 2 && ((_hostWndRect.right - _hostWndRect.left) < GetSystemMetrics(SM_CXVIRTUALSCREEN) || (_hostWndRect.bottom - _hostWndRect.top) < GetSystemMetrics(SM_CYVIRTUALSCREEN));