Skip to content

Commit

Permalink
fix: 修复检测窗口重叠的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed May 9, 2024
1 parent 6448a81 commit 8e0fb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magpie.Core/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e0fb38

Please sign in to comment.