mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
23 lines
658 B
C#
23 lines
658 B
C#
using Robust.Shared.Maths;
|
|
|
|
namespace Robust.Client.Graphics
|
|
{
|
|
public enum WindowMode : byte
|
|
{
|
|
Windowed = 0,
|
|
Fullscreen = 1,
|
|
// Maybe add borderless? Not sure how good Godot's default fullscreen is with alt tabbing.
|
|
}
|
|
|
|
// Remember when this was called DisplayManager?
|
|
internal static class ClydeBase
|
|
{
|
|
internal static Vector2i ClampSubRegion(Vector2i size, UIBox2i? subRegionSpecified)
|
|
{
|
|
return subRegionSpecified == null
|
|
? size
|
|
: UIBox2i.FromDimensions(Vector2i.Zero, size).Intersection(subRegionSpecified.Value)?.Size ?? default;
|
|
}
|
|
}
|
|
}
|