From 33e17a274e39c4cd9655504593f1a4ea61c46e55 Mon Sep 17 00:00:00 2001 From: Xu Date: Sat, 28 Dec 2024 17:16:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=B0=E5=BD=95=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=92=8C=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Magpie.Core/ScalingWindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Magpie.Core/ScalingWindow.cpp b/src/Magpie.Core/ScalingWindow.cpp index fb5a066d..7f858c8f 100644 --- a/src/Magpie.Core/ScalingWindow.cpp +++ b/src/Magpie.Core/ScalingWindow.cpp @@ -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(); @@ -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();