Skip to content

Commit

Permalink
feat: 记录缩放开始和结束
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Dec 28, 2024
1 parent 8548abf commit 33e17a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Magpie.Core/ScalingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ ScalingError ScalingWindow::Create(
return ScalingError::ScalingFailedGeneral;
}

Logger::Get().Info(fmt::format("缩放开始\n\t程序版本: {}\n\t管理员: {}",
#ifdef MAGPIE_VERSION_TAG
STRING(MAGPIE_VERSION_TAG),
#else
"dev",
#endif
Win32Helper::IsProcessElevated() ? "" : ""
));

// 记录缩放选项
_options.Log();

Expand Down Expand Up @@ -418,6 +427,8 @@ LRESULT ScalingWindow::_MessageHandler(UINT msg, WPARAM wParam, LPARAM lParam) n
}
case WM_DESTROY:
{
Logger::Get().Info("缩放结束");

if (_exclModeMutex) {
_exclModeMutex.ReleaseMutex();
_exclModeMutex.reset();
Expand Down

0 comments on commit 33e17a2

Please sign in to comment.