Exemple #1
0
 public static void GameToScreenCoords(ref RectangleF r)
 {
     r.X = (r.X + Settings.GameOffset.X) * Settings.GameScale;
     r.Y = (r.Y + Settings.GameOffset.Y) * Settings.GameScale;
     r.Width = r.Width * Settings.GameScale;
     r.Height = r.Height * Settings.GameScale;
 }
Exemple #2
0
 public RectangleF(RectangleF r)
 {
     X = r.X;
     Y = r.Y;
     Width = r.Width;
     Height = r.Height;
 }