NesHd.Core.Output.Video.Devices.VideoGdi.AddScanline C# (CSharp) Method

AddScanline() public method

public AddScanline ( int line, int scanlineBuffer ) : void
line int
scanlineBuffer int
return void
        public void AddScanline(int line, int[] scanlineBuffer)
        {
            if (_canRender & _isRendering)
            {
                //Check if we should cut this line
                if (line > _scanlinesToCut & line < (_scanlines + _scanlinesToCut))
                {
                    var liner = ((line - _scanlinesToCut)*256);
                    //Set the scanline into the buffer
                    for (var i = 0; i < 256; i++)
                        _buffer[liner + i] = scanlineBuffer[i];
                }
            }
        }