Improved code for applying Borderless Window
This commit is contained in:
parent
b58e3f72f8
commit
7e91d96700
1 changed files with 4 additions and 4 deletions
|
|
@ -309,10 +309,10 @@ namespace SM.Base.Window
|
||||||
WindowState = WindowState.Maximized;
|
WindowState = WindowState.Maximized;
|
||||||
WindowBorder = WindowBorder.Hidden;
|
WindowBorder = WindowBorder.Hidden;
|
||||||
|
|
||||||
X = Screen.PrimaryScreen.Bounds.Left;
|
X = 0;
|
||||||
Y = Screen.PrimaryScreen.Bounds.Top;
|
Y = 0;
|
||||||
Width = Screen.PrimaryScreen.Bounds.Width;
|
Width = DisplayDevice.Default.Width;
|
||||||
Height = Screen.PrimaryScreen.Bounds.Height;
|
Height = DisplayDevice.Default.Height;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case WindowFlags.ExclusiveFullscreen:
|
case WindowFlags.ExclusiveFullscreen:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue