mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 使结束缩放后清理更可靠
This commit is contained in:
parent
f116629169
commit
e70d5ee075
1 changed files with 5 additions and 5 deletions
|
|
@ -337,10 +337,8 @@ void ScalingWindow::Start(HWND hwndSrc, ScalingOptions&& options) noexcept {
|
|||
|
||||
void ScalingWindow::Stop() noexcept {
|
||||
Destroy();
|
||||
|
||||
if (_isSrcRepositioning) {
|
||||
CleanAfterSrcRepositioned();
|
||||
}
|
||||
// 为了简化逻辑和确保可靠清理,这里始终调用 CleanAfterSrcRepositioned
|
||||
CleanAfterSrcRepositioned();
|
||||
}
|
||||
|
||||
void ScalingWindow::SwitchScalingState(bool isWindowedMode) noexcept {
|
||||
|
|
@ -398,7 +396,9 @@ void ScalingWindow::RestartAfterSrcRepositioned() noexcept {
|
|||
}
|
||||
|
||||
void ScalingWindow::CleanAfterSrcRepositioned() noexcept {
|
||||
_options = {};
|
||||
if (_options.save) {
|
||||
_options = {};
|
||||
}
|
||||
_lastWindowedRendererWidth = 0;
|
||||
_isSrcRepositioning = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue