aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIFontManager.cpp6
-rw-r--r--guilib/GUITextLayout.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/guilib/GUIFontManager.cpp b/guilib/GUIFontManager.cpp
index 06560c6f3c..e3ab9f709a 100644
--- a/guilib/GUIFontManager.cpp
+++ b/guilib/GUIFontManager.cpp
@@ -87,7 +87,7 @@ CGUIFont* GUIFontManager::LoadTTF(const CStdString& strFontName, const CStdStrin
if (sourceRes == RES_INVALID) // no source res specified, so assume the skin res
sourceRes = m_skinResolution;
- float newSize = iSize;
+ float newSize = (float)iSize;
RescaleFontSizeAndAspect(&newSize, &aspect, sourceRes, preserveAspect);
// First try to load the font from the skin
@@ -142,7 +142,7 @@ CGUIFont* GUIFontManager::LoadTTF(const CStdString& strFontName, const CStdStrin
}
// font file is loaded, create our CGUIFont
- CGUIFont *pNewFont = new CGUIFont(strFontName, iStyle, textColor, shadowColor, lineSpacing, iSize, pFontFile);
+ CGUIFont *pNewFont = new CGUIFont(strFontName, iStyle, textColor, shadowColor, lineSpacing, (float)iSize, pFontFile);
m_vecFonts.push_back(pNewFont);
// Store the original TTF font info in case we need to reload it in a different resolution
@@ -201,7 +201,7 @@ void GUIFontManager::ReloadTTFFonts(void)
OrigFontInfo fontInfo = m_vecFontInfo[i];
float aspect = fontInfo.aspect;
- float newSize = fontInfo.size;
+ float newSize = (float)fontInfo.size;
CStdString& strPath = fontInfo.fontFilePath;
CStdString& strFilename = fontInfo.fileName;
diff --git a/guilib/GUITextLayout.cpp b/guilib/GUITextLayout.cpp
index 84a6a24126..3a69d0c8ad 100644
--- a/guilib/GUITextLayout.cpp
+++ b/guilib/GUITextLayout.cpp
@@ -571,7 +571,7 @@ void CGUITextLayout::DrawOutlineText(CGUIFont *font, float x, float y, const vec
{
if (outlineWidth)
{
- outlineWidth = outlineWidth * font->GetScaleFactor() + 0.5f;
+ outlineWidth = (int32_t)(outlineWidth * font->GetScaleFactor() + 0.5f);
if (outlineWidth < 2)
outlineWidth = 2;
}