Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetBounds()

bool Terraria.Graphics.WindowStateController.TryGetBounds ( string screenDeviceName,
out Rectangle bounds )
inlineprivate

Definition at line 35 of file WindowStateController.cs.

36 {
37 bounds = default(Rectangle);
38 Screen[] allScreens = Screen.AllScreens;
39 foreach (Screen screen in allScreens)
40 {
41 if (screen.DeviceName == screenDeviceName)
42 {
43 bounds = screen.Bounds;
44 return true;
45 }
46 }
47 return false;
48 }

Referenced by Terraria.Graphics.WindowStateController.TryMovingToScreen().