mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
Compare commits
2 commits
dev
...
release/v0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e0fb38019 | ||
|
|
6448a81421 |
2 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ static POINT HostToSrc(POINT pt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pt.y >= outputRect.bottom) {
|
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) {
|
} else if (pt.y < outputRect.top) {
|
||||||
result.y += pt.y - outputRect.top;
|
result.y += pt.y - outputRect.top;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ bool CheckForeground(HWND hwndForeground) {
|
||||||
IntersectRect(&rectForground, &MagApp::Get().GetHostWndRect(), &rectForground);
|
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 {
|
uint32_t Renderer::GetEffectCount() const noexcept {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue