Fixed compiler warnings.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user