automatically add linebreaks in broadcasts

This commit is contained in:
Tim Schumacher 2016-05-14 16:21:56 +02:00
parent d2f5714042
commit 434b9345d8

View file

@ -28,7 +28,7 @@ void CBroadcast::OnRender()
if(time_get() < m_BroadcastTime)
{
CTextCursor Cursor;
TextRender()->SetCursor(&Cursor, m_BroadcastRenderOffset, 40.0f, 12.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
TextRender()->SetCursor(&Cursor, m_BroadcastRenderOffset, 40.0f, 12.0f, TEXTFLAG_RENDER);
Cursor.m_LineWidth = 300*Graphics()->ScreenAspect()-m_BroadcastRenderOffset;
TextRender()->TextEx(&Cursor, m_aBroadcastText, -1);
}