public static unsafe void ProcessDisplayChange(ref WindowMessage msg, EventedWindowCore window) { fixed(WindowMessage *ptr = &msg) { var packet = new DisplayChangePacket(ptr); window.OnDisplayChange(ref packet); } }
protected internal virtual void OnDisplayChange(ref DisplayChangePacket packet) { unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); } }