コード例 #1
0
 public void Reset(ResolutionChecker.ScreenSize size)
 {
     this.Size        = size;
     this.AspectRatio = 0 != this.Size.Height ? this.Size.Width / (float)this.Size.Height : 0;
     this.IsLandscape = 1 < this.AspectRatio;
 }
コード例 #2
0
 public void Sync(ResolutionChecker.ScreenInfo rhs)
 {
     this.Size        = rhs.Size;
     this.AspectRatio = rhs.AspectRatio;
     this.IsLandscape = rhs.IsLandscape;
 }