Get Primary Monitor Size

Pure
GetPrimaryMonitorSize

Returns the primary monitor's native resolution.

Type: Pure (no side effects)
Category: Fortuna|Platform & System
Keywords: platform & system

Outputs

NameTypeDescription
WidthintWidth output
HeightintHeight output

Example Use Cases

Example 1

Set default windowed mode to 80% of monitor size.

Example 2

Scale UI elements to physical screen size.