Skip to content

Commit

Permalink
Default to 2475x1322 not fullsize
Browse files Browse the repository at this point in the history
  • Loading branch information
Fma965 committed May 21, 2023
1 parent 74b19ec commit d23b254
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
8 changes: 4 additions & 4 deletions BorderlessGaming/BorderlessGaming.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>BorderlessGaming</RootNamespace>
<AssemblyName>BorderlessGaming</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl>
Expand All @@ -26,6 +26,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
Expand Down Expand Up @@ -238,9 +239,8 @@
$(PostBuildEventDependsOn);
PostBuildMacros;
</PostBuildEventDependsOn>
<PostBuildEvent>call signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /as /sha1 3BD5BE571287FE2052F137C44198AE7BAB38B037 "$(ProjectDir)$(OutDir)$(TargetFileName)"
call iscc /Qp "$(SolutionDir)\Installers\BorderlessGaming_Standalone_Admin.iss"
call signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /as /sha1 3BD5BE571287FE2052F137C44198AE7BAB38B037 "$(SolutionDir)Installers\BorderlessGaming@(VersionNumber)_admin_setup.exe"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>copy $(SolutionDir)SteamLibs\* $(ProjectDir)$(OutDir)</PreBuildEvent>
Expand Down
35 changes: 27 additions & 8 deletions BorderlessGaming/Forms/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,13 @@ private void byTheWindowTitleTextToolStripMenuItem_Click(object sender, EventArg
var favorite = new Favorite
{
Type = FavoriteType.Title,
SearchText = pd.WindowTitle
SearchText = pd.WindowTitle,
PositionH = 1392,
PositionW = 2475,
PositionX = 1322,
PositionY = 0,
Size = FavoriteSize.SpecificSize,
ShouldMaximize = false
};
Config.Instance.AddFavorite(favorite, () =>
{
Expand All @@ -380,11 +386,17 @@ private void byTheProcessBinaryNameToolStripMenuItem_Click(object sender, EventA
{
return;
}
var favorite = new Favorite
{
Type = FavoriteType.Process,
SearchText = pd.BinaryName
};
var favorite = new Favorite
{
Type = FavoriteType.Process,
SearchText = pd.BinaryName,
PositionH = 1392,
PositionW = 2475,
PositionX = 1322,
PositionY = 0,
Size = FavoriteSize.SpecificSize,
ShouldMaximize = false
};
Config.Instance.AddFavorite(favorite, () =>
{
lstFavorites.Items.Add(favorite);
Expand Down Expand Up @@ -414,8 +426,15 @@ private void byTheWindowTitleTextregexToolStripMenuItem_Click(object sender, Eve
var favorite = new Favorite
{
Type = FavoriteType.Regex,
SearchText = res
SearchText = res,
PositionH = 1392,
PositionW = 2475,
PositionX = 1322,
PositionY = 0,
Size = FavoriteSize.SpecificSize,
ShouldMaximize = false,
};

Config.Instance.AddFavorite(favorite, () =>
{
lstFavorites.Items.Add(favorite);
Expand Down Expand Up @@ -898,7 +917,7 @@ private void processContext_Opening(object sender, CancelEventArgs e)
private void MainWindow_Load(object sender, EventArgs e)
{
// set the title
Text = "Borderless Gaming " + Assembly.GetExecutingAssembly().GetName().Version.ToString(3) + ((Uac.Elevated) ? " [Administrator]" : "");
Text = "Borderless Gaming " + Assembly.GetExecutingAssembly().GetName().Version.ToString(3) + " (Modded by Fma965)" + ((Uac.Elevated) ? " [Administrator]" : "");

var settings = Config.Instance.AppSettings;
// load up settings
Expand Down

0 comments on commit d23b254

Please sign in to comment.