internal NowGraphicsUpdateEventArgs(NativeNowUpdateGraphicsMsg msg)
 {
     CodecId    = msg.codecId;
     X          = msg.x;
     Y          = msg.y;
     Width      = msg.width;
     Height     = msg.height;
     BufferSize = msg.updateSize;
     Buffer     = msg.updateData;
 }
Ejemplo n.º 2
0
        private static int OnGraphicsUpdateCallback(IntPtr context, ref NativeNowUpdateGraphicsMsg graphics)
        {
            NowSharee nowSharee = (NowSharee)context;

            if (nowSharee == null)
            {
                return(0);
            }

            nowSharee.OnGraphicsUpdate?.Invoke(nowSharee, new NowGraphicsUpdateEventArgs(graphics));

            return(1);
        }