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

DrawPixel() public method

public DrawPixel ( int x, int y, int color ) : void
x int
y int
color int
return void
        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;
                }
            }
        }