Пример #1
0
 // Token: 0x0600299E RID: 10654 RVA: 0x0009FAE8 File Offset: 0x0009DCE8
 public static void smethod_5(Rectangle window_bounds, Point p)
 {
     if (p.X < 0)
     {
         p.X = 0;
     }
     if (p.Y < 0)
     {
         p.Y = 0;
     }
     if (p.X > window_bounds.Width)
     {
         p.X = window_bounds.Width;
     }
     if (p.Y > window_bounds.Height)
     {
         p.Y = window_bounds.Height;
     }
     p.X += window_bounds.X;
     p.Y += window_bounds.Y;
     Class465.smethod_3(p);
 }
Пример #2
0
        // Token: 0x0600299D RID: 10653 RVA: 0x0009FA44 File Offset: 0x0009DC44
        public static void smethod_4(IntPtr hWnd, Point p)
        {
            Rectangle rectangle = Class410.smethod_16(hWnd);

            if (p.X < 0)
            {
                p.X = 0;
            }
            if (p.Y < 0)
            {
                p.Y = 0;
            }
            if (p.X > rectangle.Width)
            {
                p.X = rectangle.Width;
            }
            if (p.Y > rectangle.Height)
            {
                p.Y = rectangle.Height;
            }
            p.X += rectangle.X;
            p.Y += rectangle.Y;
            Class465.smethod_3(p);
        }