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];
}
}
}