Skip to content

Commit

Permalink
fix fullscreen not working
Browse files Browse the repository at this point in the history
  • Loading branch information
34736384 committed Dec 26, 2023
1 parent 05935ed commit 31d39dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unlockfps_nc/Service/ProcessService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ private void ApplyFpsLimit()

private string BuildCommandLine()
{
string commandLine = string.Empty;
string commandLine = $"{_config.GamePath} ";
if (_config.PopupWindow)
commandLine += "-popupwindow ";

if (_config.UseCustomRes)
commandLine += $"-screen-width {_config.CustomResX} -screen-height {_config.CustomResY} ";

commandLine += $"-screen-fullscreen {_config.Fullscreen} ";
commandLine += $"-screen-fullscreen {(_config.Fullscreen ? 1 : 0)} ";
if (_config.Fullscreen)
commandLine += $"-window-mode {(_config.IsExclusiveFullscreen ? "exclusive" : "borderless")}";

Expand Down

0 comments on commit 31d39dd

Please sign in to comment.