public void DrawText(string text, int frames)
{
_textToRender = text;
_textApperance = frames;
//This draw is useful when the nes is paused.
if (_surface != null & !_isRendering)
{
if (_textApperance > 0)
{
var graphics = _surface.CreateGraphics();
graphics.DrawString(_textToRender, new Font("Tohama", 16, FontStyle.Bold),
new SolidBrush(Color.White), new PointF(30, _surface.Height - 50));
_textApperance--;
}
}
}