Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void Sync(ResolutionChecker.ScreenInfo rhs)
 {
     this.Size        = rhs.Size;
     this.AspectRatio = rhs.AspectRatio;
     this.IsLandscape = rhs.IsLandscape;
 }