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:
parent
ede4e2e4b3
commit
fc5ddb2ad0
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user