Remove unused CTextCursor variable

This commit is contained in:
Robert Müller 2024-04-03 22:01:10 +02:00
parent e263ce9bdc
commit 3c6fce376d

View file

@ -2685,10 +2685,6 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView)
float Y = PreviewView.y;
float LineWidth = g_Config.m_ClChatWidth * 2 - (RealMsgPaddingX * 1.5f) - RealMsgPaddingTee;
CTextCursor Cursor;
TextRender()->SetCursor(&Cursor, X, Y, RealFontSize, TEXTFLAG_RENDER);
Cursor.m_LineWidth = LineWidth;
str_copy(aBuf, Client()->PlayerName());
const CAnimState *pIdleState = CAnimState::GetIdle();
@ -2949,7 +2945,6 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView)
}
// Client
RenderPreview(PREVIEW_CLIENT, X, Y);
TextRender()->SetCursorPosition(&Cursor, X, Y);
TextRender()->TextColor(TextRender()->DefaultTextColor());
}