mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add platform and arch in console output
This commit is contained in:
parent
92616f1a55
commit
2b0e13db53
|
@ -710,7 +710,7 @@ void CGameConsole::OnRender()
|
|||
TextRender()->Text(0, 10.0f, FontSize / 2.f, FontSize, aBuf, -1.0f);
|
||||
|
||||
// render version
|
||||
str_format(aBuf, sizeof(aBuf), "v%s", GAME_VERSION);
|
||||
str_copy(aBuf, "v" GAME_VERSION " on " CONF_PLATFORM_STRING " " CONF_ARCH_STRING, sizeof(aBuf));
|
||||
float Width = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f);
|
||||
TextRender()->Text(0, Screen.w-Width-10.0f, FontSize / 2.f, FontSize, aBuf, -1.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue