mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
fixed overlapping in last commit
This commit is contained in:
parent
56c4081da4
commit
eecdff0cf5
|
@ -70,7 +70,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
|
||||||
MainView.HSplitTop(SeekBarHeight, &SeekBar, &ButtonBar);
|
MainView.HSplitTop(SeekBarHeight, &SeekBar, &ButtonBar);
|
||||||
ButtonBar.HSplitTop(Margins, 0, &ButtonBar);
|
ButtonBar.HSplitTop(Margins, 0, &ButtonBar);
|
||||||
ButtonBar.HSplitBottom(NameBarHeight, &ButtonBar, &NameBar);
|
ButtonBar.HSplitBottom(NameBarHeight, &ButtonBar, &NameBar);
|
||||||
NameBar.HSplitTop(3.5f, 0, &NameBar);
|
NameBar.HSplitTop(4.0f, 0, &NameBar);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SeekBar = MainView;
|
SeekBar = MainView;
|
||||||
|
@ -207,8 +207,8 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
|
||||||
char aBuf[128];
|
char aBuf[128];
|
||||||
str_format(aBuf, sizeof(aBuf), "Demofile: %s", DemoPlayer()->GetDemoName());
|
str_format(aBuf, sizeof(aBuf), "Demofile: %s", DemoPlayer()->GetDemoName());
|
||||||
CTextCursor Cursor;
|
CTextCursor Cursor;
|
||||||
TextRender()->SetCursor(&Cursor, NameBar.x, NameBar.y, Button.h*0.7f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
TextRender()->SetCursor(&Cursor, NameBar.x, NameBar.y, Button.h*0.5f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
|
||||||
Cursor.m_LineWidth = 450.0f;
|
Cursor.m_LineWidth = MainView.w;
|
||||||
TextRender()->TextEx(&Cursor, aBuf, -1);
|
TextRender()->TextEx(&Cursor, aBuf, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue