private void RefreshText()
{
//Draw it once onto _target for performance reasons
_target.Clear(Color.FromArgb(0, Color.Black));
RenderTarget old = GorgonLibrary.Gorgon.CurrentRenderTarget;
GorgonLibrary.Gorgon.CurrentRenderTarget = _target;
if (_allowScrollbar)
{
if (_wrapText)
{
_textSprite.SetPosition(0, -_textScrollBar.TopIndex);
}
else
{
_textSprite.SetPosition(-_textScrollBar.TopIndex, 0);
}
}
else
{
_textSprite.SetPosition(0, 0);
}
_textSprite.Draw();
GorgonLibrary.Gorgon.CurrentRenderTarget = old;
}