Fixed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8012 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-03-21 05:19:42 +00:00
parent ede4e2e4b3
commit fc5ddb2ad0
2 changed files with 4 additions and 2 deletions

View File

@ -505,7 +505,7 @@ void ScalableFont::draw(const core::stringw& text,
c == L'\n' ) // Unix breaks
{
if(c==L'\r' && text[i+1]==L'\n') c = text[++i];
offset.Y += MaxHeight*m_scale;
offset.Y += (int)(MaxHeight*m_scale);
offset.X = position.UpperLeftCorner.X;
if (hcenter)
offset.X += (position.getWidth() - text_dimension.Width) >> 1;

View File

@ -127,7 +127,9 @@ void RibbonWidget::add()
// ---- tab ribbons
if (getRibbonType() == RIBBON_TABS)
{
const int large_tab = (with_label + without_label)*one_button_space / (with_label + without_label/2.0f);
const int large_tab = (int)((with_label + without_label)
*one_button_space
/ (with_label + without_label/2.0f));
const int small_tab = large_tab/2;
stringw& message = m_children[i].m_text;