Skip to content

Commit

Permalink
fix: 启用“在 3D 游戏中限制光标”时不使用多屏幕
Browse files Browse the repository at this point in the history
fixes #321
  • Loading branch information
Blinue committed Mar 12, 2022
1 parent f711309 commit dd743ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit dd743ad

Please sign in to comment.