Skip to content

Commit

Permalink
...oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Feb 3, 2017
1 parent 719978d commit e38225a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions LightBulb/Services/WindowsWindowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,10 @@ public bool IsWindowFullScreen(IntPtr hWindow)

// Get the screen rect and compare
var screenRect = Screen.FromHandle(hWindow).Bounds;
bool result = windowRect.Left <= 0 && windowRect.Top <= 0 &&
windowRect.Right >= screenRect.Right && windowRect.Bottom >= screenRect.Bottom;
bool boundCheck = windowRect.Left <= 0 && windowRect.Top <= 0 &&
windowRect.Right >= screenRect.Right && windowRect.Bottom >= screenRect.Bottom;

if (result)
Debug.WriteLine("fuck");
return result;
return boundCheck;
}

public override void Dispose()
Expand Down

0 comments on commit e38225a

Please sign in to comment.