Fixed a few displays for RTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -380,7 +380,7 @@ void RaceGUI::drawGlobalTimer()
|
||||
}
|
||||
|
||||
gui::ScalableFont* font = GUIEngine::getFont();
|
||||
font->draw(sw.c_str(), pos, time_color);
|
||||
font->draw(sw.c_str(), pos, time_color, false, false, NULL, true /* ignore RTL */);
|
||||
} // drawGlobalTimer
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -564,7 +564,8 @@ void RaceGUI::drawGlobalPlayerIcons(const KartIconDisplayInfo* info)
|
||||
core::rect<s32> pos(x+ICON_PLAYER_WIDTH, y+5,
|
||||
x+ICON_PLAYER_WIDTH, y+5);
|
||||
core::stringw s=info[kart_id].m_text.c_str();
|
||||
font->draw(s.c_str(), pos, color);
|
||||
|
||||
font->draw(s.c_str(), pos, color, false, false, NULL, true /* ignore RTL */);
|
||||
}
|
||||
|
||||
if (info[kart_id].special_title.size() > 0)
|
||||
@@ -573,7 +574,7 @@ void RaceGUI::drawGlobalPlayerIcons(const KartIconDisplayInfo* info)
|
||||
core::rect<s32> pos(x+ICON_PLAYER_WIDTH, y+5,
|
||||
x+ICON_PLAYER_WIDTH, y+5);
|
||||
core::stringw s(info[kart_id].special_title.c_str());
|
||||
font->draw(s.c_str(), pos, color);
|
||||
font->draw(s.c_str(), pos, color, false, false, NULL, true /* ignore RTL */);
|
||||
}
|
||||
|
||||
// draw icon
|
||||
|
||||
@@ -608,7 +608,7 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
// -------------
|
||||
core::recti pos_name(current_x, y,
|
||||
UserConfigParams::m_width, y+m_distance_between_rows);
|
||||
m_font->draw(ri->m_kart_name, pos_name, color);
|
||||
m_font->draw(ri->m_kart_name, pos_name, color, false, false, NULL, true /* ignoreRTL */);
|
||||
current_x += m_width_kart_name + m_width_column_space;
|
||||
|
||||
// Draw the time except in FTL mode
|
||||
@@ -616,7 +616,7 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
if(race_manager->getMinorMode()!=RaceManager::MINOR_MODE_FOLLOW_LEADER)
|
||||
{
|
||||
core::recti dest_rect = core::recti(current_x, y, current_x+100, y+10);
|
||||
m_font->draw(ri->m_finish_time_string, dest_rect, color);
|
||||
m_font->draw(ri->m_finish_time_string, dest_rect, color, false, false, NULL, true /* ignoreRTL */);
|
||||
current_x += m_width_finish_time + m_width_column_space;
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
// aligned.
|
||||
while(point_string.size()<3)
|
||||
point_string = core::stringw(" ")+point_string;
|
||||
m_font->draw(point_string, dest_rect, color);
|
||||
m_font->draw(point_string, dest_rect, color, false, false, NULL, true /* ignoreRTL */);
|
||||
}
|
||||
current_x += m_width_new_points +m_width_column_space;
|
||||
|
||||
@@ -649,7 +649,7 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
core::stringw((int)(ri->m_current_displayed_points));
|
||||
while(point_inc_string.size()<3)
|
||||
point_inc_string = core::stringw(" ")+point_inc_string;
|
||||
m_font->draw(point_inc_string, dest_rect, color);
|
||||
m_font->draw(point_inc_string, dest_rect, color, false, false, NULL, true /* ignoreRTL */);
|
||||
|
||||
} // displayOneEntry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user