Skip to content

Commit

Permalink
5.1 Hot Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeusa committed Jan 14, 2014
1 parent e9b92c7 commit cdd7d68
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Forms/CompactWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<borderlessgaming>
<version>5.0</version>
<version>5.1</version>
<url>https://github.com/Codeusa/Borderless-Gaming/releases/latest</url>
</borderlessgaming>

0 comments on commit cdd7d68

Please sign in to comment.