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

◆ AspectRatio

float Microsoft.Xna.Framework.Graphics.DisplayMode.AspectRatio
get

Definition at line 19 of file DisplayMode.cs.

20 {
21 get
22 {
23 if (_height == 0 || _width == 0)
24 {
25 return 0f;
26 }
27 return (float)_width / (float)_height;
28 }
29 }

Referenced by Microsoft.Xna.Framework.Graphics.DisplayMode.ToString().