diff --git a/Forms/CompactWindow.cs b/Forms/CompactWindow.cs index fea7ea5..ae29370 100644 --- a/Forms/CompactWindow.cs +++ b/Forms/CompactWindow.cs @@ -146,11 +146,13 @@ private void RemoveBorder(String procName) //actually make it frameless //force a redraw Native.DrawMenuBar(proc.MainWindowHandle); + Native.SetWindowLong(pFoundWindow, WindowLongIndex.Style, (style & ~(WindowStyleFlags.ExtendedDlgmodalframe | WindowStyleFlags.Caption | WindowStyleFlags.ThickFrame | WindowStyleFlags.Minimize | WindowStyleFlags.Maximize | WindowStyleFlags.SystemMenu | WindowStyleFlags.MaximizeBox | WindowStyleFlags.MinimizeBox | WindowStyleFlags.Border | WindowStyleFlags.ExtendedComposited))); if (!_borderlessWindows.Contains(pFoundWindow.ToInt32().ToString())) { var bounds = Screen.FromHandle(pFoundWindow).Bounds; Native.SetWindowPos(pFoundWindow, 0, bounds.X, bounds.Y, bounds.Width, bounds.Height, SetWindowPosFlags.NoZOrder | SetWindowPosFlags.ShowWindow); + _borderlessWindows.Add(pFoundWindow.ToInt32().ToString()); } _gameFound = true; } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 887bcf7..96053d0 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -35,6 +35,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.0.0")] -[assembly: AssemblyFileVersion("5.0.0.0")] +[assembly: AssemblyVersion("5.1.0.0")] +[assembly: AssemblyFileVersion("5.1.0.0")] [assembly: NeutralResourcesLanguage("en-US")] \ No newline at end of file diff --git a/README.md b/README.md index bcb4f3f..75b9ba6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The project is open source under the [GNU GENERAL PUBLIC LICENSE](https://github #### Install -*Download the latest build from: https://github.com/Codeusa/Borderless-Gaming/releases/download/4.6/BorderlessGaming.zip +*Download the latest build from: https://github.com/Codeusa/Borderless-Gaming/releases/download/5.1/BorderlessGaming.zip *Extract its contents to any desired folder diff --git a/version.xml b/version.xml index 80098f9..ac588ff 100644 --- a/version.xml +++ b/version.xml @@ -1,5 +1,5 @@ - 5.0 + 5.1 https://github.com/Codeusa/Borderless-Gaming/releases/latest \ No newline at end of file