Skip to content

Commit

Permalink
fix: 复制配置文件时复制自动缩放选项 (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue authored Feb 2, 2025
1 parent 2db1444 commit 5b9ccae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Magpie/Profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ enum class CursorScaling {
// 默认规则 Name、PathRule、ClassNameRule 均为空
struct Profile {
void Copy(const Profile& other) noexcept {
// 不复制自动缩放选项
scalingMode = other.scalingMode;
cursorScaling = other.cursorScaling;
customCursorScaling = other.customCursorScaling;
isCroppingEnabled = other.isCroppingEnabled;
cropping = other.cropping;
captureMethod = other.captureMethod;
graphicsCardId = other.graphicsCardId;
isFrameRateLimiterEnabled = other.isFrameRateLimiterEnabled;
maxFrameRate = other.maxFrameRate;
multiMonitorUsage = other.multiMonitorUsage;
cursorInterpolationMode = other.cursorInterpolationMode;
launchParameters = other.launchParameters;
scalingFlags = other.scalingFlags;

isCroppingEnabled = other.isCroppingEnabled;
isAutoScale = other.isAutoScale;
isFrameRateLimiterEnabled = other.isFrameRateLimiterEnabled;
}

DEFINE_FLAG_ACCESSOR(IsWindowResizingDisabled, ScalingFlags::DisableWindowResizing, scalingFlags)
Expand Down

0 comments on commit 5b9ccae

Please sign in to comment.