mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Merge pull request #8185 from Robyt3/Menus-TextCursor-Cleanup
Remove unused `CTextCursor` variable
This commit is contained in:
commit
37bceee079
|
@ -2685,10 +2685,6 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView)
|
||||||
float Y = PreviewView.y;
|
float Y = PreviewView.y;
|
||||||
float LineWidth = g_Config.m_ClChatWidth * 2 - (RealMsgPaddingX * 1.5f) - RealMsgPaddingTee;
|
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());
|
str_copy(aBuf, Client()->PlayerName());
|
||||||
|
|
||||||
const CAnimState *pIdleState = CAnimState::GetIdle();
|
const CAnimState *pIdleState = CAnimState::GetIdle();
|
||||||
|
@ -2949,7 +2945,6 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView)
|
||||||
}
|
}
|
||||||
// Client
|
// Client
|
||||||
RenderPreview(PREVIEW_CLIENT, X, Y);
|
RenderPreview(PREVIEW_CLIENT, X, Y);
|
||||||
TextRender()->SetCursorPosition(&Cursor, X, Y);
|
|
||||||
|
|
||||||
TextRender()->TextColor(TextRender()->DefaultTextColor());
|
TextRender()->TextColor(TextRender()->DefaultTextColor());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue