internal static void resetOrderState() { Orders.Reset(); SurfaceClip.Reset(); DestBltOrder.Reset(); MultiDestBltOrder.Reset(); PatBltOrder.Reset(); MultiPatBltOrder.Reset(); ScreenBltOrder.Reset(); MultiScreenBltOrder.Reset(); MemBltOrder.Reset(); TriBltOrder.Reset(); ScreenBltOrder.Reset(); LineOrder.Reset(); PolylineOrder.Reset(); RectangleOrder.Reset(); MultiRectangleOrder.Reset(); DeskSaveOrder.Reset(); Glyph.Reset(); Cache.Reset(!m_bInitialised); Text2Order.Reset(); Options.BoundsTop = Options.BoundsLeft = 0; Options.BoundsBottom = Options.height - 1; Options.BoundsRight = Options.width - 1; }
private static void processPolyLine(RdpPacket data, int present, bool delta) { if ((present & 1) != 0) { PolylineOrder.X = setCoordinate(data, PolylineOrder.X, delta); } if ((present & 2) != 0) { PolylineOrder.Y = setCoordinate(data, PolylineOrder.Y, delta); } if ((present & 4) != 0) { PolylineOrder.Opcode = data.ReadByte(); } if ((present & 8) != 0) { data.ReadLittleEndian16(); } if ((present & 0x10) != 0) { PolylineOrder.PenColor = setColor(data); } if ((present & 0x20) != 0) { PolylineOrder.Lines = data.ReadByte(); } if ((present & 0x40) != 0) { int num = data.ReadByte(); PolylineOrder.DataSize = num; byte[] buffer = new byte[num]; data.Read(buffer, 0, buffer.Length); PolylineOrder.Data = buffer; } PolylineOrder.drawPolyLineOrder(); }