Ejemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="surface"></param>
 /// <param name="rectangle"></param>
 /// <param name="flags"></param>
 public void BltFast(int x, int y, IGraphicsSurface surface, ref Rectangle rectangle, BltFastFlags flags)
 {
     RECT innerRect = new RECT
     {
         Left = rectangle.Left,
         Top = rectangle.Top,
         Right = rectangle.Right,
         Bottom = rectangle.Bottom
     };
     Surface.BltFast(x, y, ((DirectDrawSurface)surface).Surface, ref innerRect, (CONST_DDBLTFASTFLAGS)((int)flags));
     rectangle = Rectangle.FromLTRB(innerRect.Left, innerRect.Top, innerRect.Right, innerRect.Bottom);
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="surface"></param>
        /// <param name="rectangle"></param>
        /// <param name="flags"></param>
        public void BltFast(int x, int y, IGraphicsSurface surface, ref Rectangle rectangle, BltFastFlags flags)
        {
            if (surface == null)
            {
                return;
            }

            var innerRect = new RECT {
                Left   = rectangle.Left,
                Top    = rectangle.Top,
                Right  = rectangle.Right,
                Bottom = rectangle.Bottom
            };

            _surface.BltFast(x, y, ((DirectDrawSurface)surface)._surface, ref innerRect, (CONST_DDBLTFASTFLAGS)((int)flags));
            rectangle = Rectangle.FromLTRB(innerRect.Left, innerRect.Top, innerRect.Right, innerRect.Bottom);
        }