Exemple #1
0
 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;
 }
Exemple #2
0
        private static void processMultiPatBlt(RdpPacket data, int present, bool delta)
        {
            if ((present & 1) != 0)
            {
                MultiPatBltOrder.X = setCoordinate(data, MultiPatBltOrder.X, delta);
            }

            if ((present & 2) != 0)
            {
                MultiPatBltOrder.Y = setCoordinate(data, MultiPatBltOrder.Y, delta);
            }

            if ((present & 4) != 0)
            {
                MultiPatBltOrder.CX = setCoordinate(data, MultiPatBltOrder.CX, delta);
            }

            if ((present & 8) != 0)
            {
                MultiPatBltOrder.CY = setCoordinate(data, MultiPatBltOrder.CY, delta);
            }

            if ((present & 0x10) != 0)
            {
                MultiPatBltOrder.Opcode = ROP2_P(data.ReadByte());
            }

            if ((present & 0x20) != 0)
            {
                MultiPatBltOrder.BackgroundColor = setColor(data);
            }

            if ((present & 0x40) != 0)
            {
                MultiPatBltOrder.ForegroundColor = setColor(data);
            }

            parseBrush(data, MultiPatBltOrder.Brush, present >> 7);

            if ((present & 0x1000) != 0)
            {
                MultiPatBltOrder.DeltaEntries = data.ReadByte();
            }

            if ((present & 0x2000) != 0)
            {
                MultiPatBltOrder.DeltaList = readEncodedDeltaRects(data, MultiPatBltOrder.DeltaEntries);
            }

            MultiPatBltOrder.drawMultiPatBltOrder();
        }