NScumm.Scumm.ScummEngine.MoveScreen C# (CSharp) Метод

MoveScreen() приватный Метод

Moves the screen content by the offset specified via dx/dy. Only the region from x=0 till x=height-1 is affected.
private MoveScreen ( int dx, int dy, int height ) : void
dx int The horizontal offset.
dy int The vertical offset.
height int The number of lines which in which the move will be done.
Результат void
        void MoveScreen(int dx, int dy, int height)
        {
            // Short circuit check - do we have to do anything anyway?
            if ((dx == 0 && dy == 0) || height <= 0)
                return;

            var screen = _gfxManager.Capture();
            if (screen == null)
                return;

            screen.Move(dx, dy, height);
            _gfxManager.CopyRectToScreen(screen.Pixels, screen.Pitch, 0, 0, screen.Width, screen.Height);
        }
ScummEngine