mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix vote in Android
This commit is contained in:
parent
42fde6b593
commit
ec152dfb46
|
@ -381,8 +381,8 @@ void CHud::RenderVoting()
|
|||
TextRender()->TextEx(&Cursor, aBuf, -1);
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
TextRender()->SetCursor(&Cursor, TextX, 23.0f, 10.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
||||
Cursor.m_LineWidth = TextW;
|
||||
TextRender()->SetCursor(&Cursor, TextX, 0.0f, 10.0f, TEXTFLAG_RENDER);
|
||||
Cursor.m_LineWidth = TextW-tw;
|
||||
#else
|
||||
TextRender()->SetCursor(&Cursor, 5.0f, 60.0f, 6.0f, TEXTFLAG_RENDER);
|
||||
Cursor.m_LineWidth = 100.0f-tw;
|
||||
|
@ -392,7 +392,11 @@ void CHud::RenderVoting()
|
|||
|
||||
// reason
|
||||
str_format(aBuf, sizeof(aBuf), "%s %s", Localize("Reason:"), m_pClient->m_pVoting->VoteReason());
|
||||
#if defined(__ANDROID__)
|
||||
TextRender()->SetCursor(&Cursor, TextX, 23.0f, 10.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
||||
#else
|
||||
TextRender()->SetCursor(&Cursor, 5.0f, 79.0f, 6.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
||||
#endif
|
||||
Cursor.m_LineWidth = 100.0f;
|
||||
TextRender()->TextEx(&Cursor, aBuf, -1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue