Fixed conversion warnings on Win64 build

0.8
Bruno Van de Velde 2019-01-27 11:31:52 +01:00
parent 07b0af452d
commit 99dee39450
2 changed files with 3 additions and 3 deletions

View File

@ -359,7 +359,7 @@ namespace tgui
return;
}
updateSelectedItem(index);
updateSelectedItem(static_cast<int>(index));
// Move the scrollbar
if (m_selectedItem * getItemHeight() < m_verticalScrollbar->getValue())

View File

@ -1047,7 +1047,7 @@ namespace tgui
updateSelectedAndHoveringItemColors();
}
m_verticalScrollbar->setMaximum(m_itemHeight * m_visibleNodes.size());
m_verticalScrollbar->setMaximum(static_cast<unsigned int>(m_itemHeight * m_visibleNodes.size()));
m_horizontalScrollbar->setMaximum(static_cast<unsigned int>(m_maxRight));
if ((m_maxRight + m_verticalScrollbar->getSize().x) > (getInnerSize().x - m_paddingCached.getLeft() - m_paddingCached.getRight()))
@ -1108,7 +1108,7 @@ namespace tgui
};
int firstNode = 0;
int lastNode = m_visibleNodes.size();
int lastNode = static_cast<int>(m_visibleNodes.size());
if (m_verticalScrollbar->getViewportSize() < m_verticalScrollbar->getMaximum())
{
firstNode = static_cast<int>(m_verticalScrollbar->getValue() / m_itemHeight);