Fix RTL top text missing

This commit is contained in:
Benau 2019-06-17 01:31:51 +08:00
parent bb63a85d6f
commit a0e182b142
2 changed files with 8 additions and 3 deletions

View File

@ -254,11 +254,13 @@ void NetworkingLobby::addMoreServerInfo(core::stringw info)
new_line.flags = gui::GLF_NEWLINE;
m_server_info.push_back(new_line);
updateServerInfos();
#endif
} // addMoreServerInfo
// ----------------------------------------------------------------------------
void NetworkingLobby::updateServerInfos()
{
#ifndef SERVER_ONLY
if (GUIEngine::getCurrentScreen() != this)
return;

View File

@ -873,12 +873,15 @@ void RaceGUIBase::drawGlobalPlayerIcons(int bottom_margin)
pos_top.UpperLeftCorner.X = x_base;
static video::SColor color = video::SColor(255, 255, 255, 255);
pos_top.LowerRightCorner = pos_top.UpperLeftCorner;
//I18N: When some GlobalPlayerIcons are hidden, write "Top 10" to show it
core::stringw top_text = _("Top %i", position - 1);
core::dimension2du dim = font->getDimension(top_text.c_str());
pos_top.LowerRightCorner = pos_top.UpperLeftCorner;
pos_top.LowerRightCorner.X += dim.Width;
pos_top.LowerRightCorner.Y += dim.Height;
font->setBlackBorder(true);
font->setThinBorder(true);
font->draw(_("Top %i", position-1 ), pos_top, color);
font->draw(top_text, pos_top, color);
font->setThinBorder(false);
font->setBlackBorder(false);