diff --git a/src/Magpie.App/ScalingService.cpp b/src/Magpie.App/ScalingService.cpp index fba35fc3..938bcabf 100644 --- a/src/Magpie.App/ScalingService.cpp +++ b/src/Magpie.App/ScalingService.cpp @@ -240,6 +240,13 @@ bool ScalingService::_StartScale(HWND hWnd, const Profile& profile) { } } } + + // 尝试启用触控支持 + bool isTouchSupportEnabled; + if (!TouchHelper::TryLaunchTouchHelper(isTouchSupportEnabled)) { + Logger::Get().Error("TryLaunchTouchHelper 失败"); + return false; + } options.graphicsCard = profile.graphicsCard; options.captureMethod = profile.captureMethod; @@ -250,6 +257,8 @@ bool ScalingService::_StartScale(HWND hWnd, const Profile& profile) { options.cursorInterpolationMode = profile.cursorInterpolationMode; options.flags = profile.scalingFlags; + options.IsTouchSupportEnabled(isTouchSupportEnabled); + if (profile.isCroppingEnabled) { options.cropping = profile.cropping; } @@ -304,14 +313,6 @@ bool ScalingService::_StartScale(HWND hWnd, const Profile& profile) { options.duplicateFrameDetectionMode = settings.DuplicateFrameDetectionMode(); options.IsStatisticsForDynamicDetectionEnabled(settings.IsStatisticsForDynamicDetectionEnabled()); - // 尝试启用触控支持 - bool isTouchSupportEnabled; - if (!TouchHelper::TryLaunchTouchHelper(isTouchSupportEnabled)) { - Logger::Get().Error("TryLaunchTouchHelper 失败"); - return false; - } - options.IsTouchSupportEnabled(isTouchSupportEnabled); - _isAutoScaling = profile.isAutoScale; _scalingRuntime->Start(hWnd, std::move(options)); _hwndCurSrc = hWnd;