From 7cad996902825a3c50aa383c3471a31786562f4f Mon Sep 17 00:00:00 2001 From: Lightczx <1686188646@qq.com> Date: Wed, 1 Nov 2023 15:28:44 +0800 Subject: [PATCH] process cmdline #1061 --- src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs b/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs index a1a4af71..15aafcd4 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs @@ -34,9 +34,9 @@ internal static class ProcessInterop .AppendIf("-popupwindow", options.IsBorderless) .AppendIf("-window-mode", options.IsExclusive, "exclusive") .Append("-screen-fullscreen", options.IsFullScreen ? 1 : 0) - .Append("-screen-width", options.ScreenWidth) - .Append("-screen-height", options.ScreenHeight) - .Append("-monitor", options.Monitor.Value) + .AppendIf("-screen-width", options.IsScreenWidthEnabled, options.ScreenWidth) + .AppendIf("-screen-height", options.IsScreenHeightEnabled, options.ScreenHeight) + .AppendIf("-monitor", options.IsMonitorEnabled, options.Monitor.Value) .ToString(); return new()