public void DrawPixel(int x, int y, int color)
{
if (_canRender & _isRendering)
{
//Check if we should cut this line
if (y >= _scanlinesToCut & y < (_scanlines + _scanlinesToCut))
{
var liner = ((y - _scanlinesToCut)*256) + x;
_buffer[liner] = color;
}
}
}