diff --git a/xbmc/rendering/RenderSystem.cpp b/xbmc/rendering/RenderSystem.cpp index 718f06132db5f..cabbea77b1b1e 100644 --- a/xbmc/rendering/RenderSystem.cpp +++ b/xbmc/rendering/RenderSystem.cpp @@ -65,8 +65,9 @@ void CRenderSystemBase::ShowSplash(const std::string& message) if (!m_splashImage) { m_splashImage = std::make_unique( - 0, 0, 0, 0, CServiceBroker::GetWinSystem()->GetGfxContext().GetWidth(), - CServiceBroker::GetWinSystem()->GetGfxContext().GetHeight(), + 0, 0, .0f, .0f, + static_cast(CServiceBroker::GetWinSystem()->GetGfxContext().GetWidth()), + static_cast(CServiceBroker::GetWinSystem()->GetGfxContext().GetHeight()), CTextureInfo(CUtil::GetSplashPath())); m_splashImage->SetAspectRatio(CAspectRatio::AR_SCALE); } @@ -90,7 +91,7 @@ void CRenderSystemBase::ShowSplash(const std::string& message) { auto messageFont = g_fontManager.LoadTTF("__splash__", "arial.ttf", 0xFFFFFFFF, 0, 20, FONT_STYLE_NORMAL, false, 1.0f, 1.0f, &res); if (messageFont) - m_splashMessageLayout = std::make_unique(messageFont, true, 0); + m_splashMessageLayout = std::make_unique(messageFont, true, .0f); } if (m_splashMessageLayout) diff --git a/xbmc/windows/GUIWindowSplash.cpp b/xbmc/windows/GUIWindowSplash.cpp index a385288511bce..19ba18981174c 100644 --- a/xbmc/windows/GUIWindowSplash.cpp +++ b/xbmc/windows/GUIWindowSplash.cpp @@ -28,10 +28,11 @@ void CGUIWindowSplash::OnInitWindow() if (!CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_splashImage) return; - m_image = std::make_unique(0, 0, 0, 0, - CServiceBroker::GetWinSystem()->GetGfxContext().GetWidth(), - CServiceBroker::GetWinSystem()->GetGfxContext().GetHeight(), - CTextureInfo(CUtil::GetSplashPath())); + m_image = std::make_unique( + 0, 0, .0f, .0f, + static_cast(CServiceBroker::GetWinSystem()->GetGfxContext().GetWidth()), + static_cast(CServiceBroker::GetWinSystem()->GetGfxContext().GetHeight()), + CTextureInfo(CUtil::GetSplashPath())); m_image->SetAspectRatio(CAspectRatio::AR_SCALE); }