Compare commits

...

2 commits

Author SHA1 Message Date
刘旭
8e0fb38019 fix: 修复检测窗口重叠的错误 2024-05-09 13:37:35 +08:00
Xu
6448a81421 fix: 修复 CursorManager 一个潜在错误 2024-03-29 20:44:25 +08:00
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ static POINT HostToSrc(POINT pt) {
}
if (pt.y >= outputRect.bottom) {
result.y += srcFrameSize.cx + pt.y - outputRect.bottom;
result.y += srcFrameSize.cy + pt.y - outputRect.bottom;
} else if (pt.y < outputRect.top) {
result.y += pt.y - outputRect.top;
} else {

View file

@ -225,7 +225,7 @@ bool CheckForeground(HWND hwndForeground) {
IntersectRect(&rectForground, &MagApp::Get().GetHostWndRect(), &rectForground);
// 允许稍微重叠,否则前台窗口最大化时会意外退出
return rectForground.right - rectForground.left < 10 || rectForground.right - rectForground.top < 10;
return rectForground.right - rectForground.left < 10 || rectForground.bottom - rectForground.top < 10;
}
uint32_t Renderer::GetEffectCount() const noexcept {