Esempio n. 1
0
 public void Method0041CFB0(GOB button, REGN reg, int flags, int arg4)
 {
     if (!reg.RegionIsWhack(out var rect))
     {
         var v = RECTANGLE.Empty;
         button.Method004241B0(ref v, 0);
         if (v.CalculateIntersection(in rect))
         {
             if ((flags & 1) != 0 || (Flags00C & 2) != 0 && (flags & 2) == 0)
             {
                 if (arg4 == 0 && button.Field000C != 0)
                 {
                     VirtualCall(0x50);
                 }
                 else
                 {
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public unsafe bool Blit(IntPtr dest, int stride, int height, int offsetX, int offsetY, RECTANGLE *rect, REGN regn)
 {
     return(UnmanagedFunctionCall.ThisCall((IntPtr)FunctionNames.MBMP_Blit, NativeHandle.Address, dest, new IntPtr(stride), new IntPtr(height), new IntPtr(offsetX), new IntPtr(offsetY), new IntPtr(rect), regn?.NativeHandle.Address ?? IntPtr.Zero) != IntPtr.Zero);
 }