Fixed compiler warnings.

This commit is contained in:
hiker
2018-04-19 18:08:48 +10:00
parent 969f938dce
commit 203c511fab
2 changed files with 2 additions and 2 deletions

View File

@@ -336,7 +336,7 @@ void FontWithFace::setDPI()
if (UserConfigParams::m_hidpi_enabled)
{
float scale = screen_height / 480.0f;
m_face_dpi = getScalingFactorTwo() * getScalingFactorOne() * scale;
m_face_dpi = int(getScalingFactorTwo() * getScalingFactorOne() * scale);
}
else
{

View File

@@ -155,7 +155,7 @@ void DynamicRibbonWidget::add()
if (UserConfigParams::m_hidpi_enabled)
{
m_arrows_w *= 1.5f;
m_arrows_w = int(m_arrows_w*1.5f);
}
const int button_h = m_arrows_w;