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

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

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

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

            if ((present & 0x10) != 0)
            {
                MultiRectangleOrder.ColourR = data.ReadByte();
            }

            if ((present & 0x20) != 0)
            {
                MultiRectangleOrder.ColourG = data.ReadByte();
            }

            if ((present & 0x40) != 0)
            {
                MultiRectangleOrder.ColourB = data.ReadByte();
            }

            if ((present & 0x80) != 0)
            {
                MultiRectangleOrder.DeltaEntries = data.ReadByte();
            }

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

            MultiRectangleOrder.drawMultiRectangleOrder();
        }