float itemHeight = GetItemSize().height;
float itemWidth = GetItemSize().width;
FloatRectangle itemRect(0.0f, 0.0f, itemWidth, itemHeight);
- int drawingLine = !_FloatCompareGE(__scrollPosition, __leftMargin) ?
- static_cast<int> ((__scrollPosition - __leftMargin + __horizontalSpacing) / __unitScrollLength) : 0;
+ int drawingLine = __scrollPosition > __leftMargin ? _CoordinateSystemUtils::ConvertToInteger((__scrollPosition - __leftMargin + __horizontalSpacing) / __unitScrollLength) : 0;
int index = drawingLine * __itemCountPerAxis;
float endXPos = __pIconListView->GetBounds().width;
float endYPos = __endPosOfAxis;
// Draw Items
_IconListItem* pItem = null;
__firstDrawnIndex = index;
- while (!_FloatCompareGE(itemRect.x, endXPos))
+ while (itemRect.x < endXPos)
{
itemRect.y = __startPosOfAxis;
- while (!_FloatCompareGE(itemRect.y, endYPos) && index < itemCount)
+ while (itemRect.y < endYPos && index < itemCount)
{
// Draw Item
pItem = dynamic_cast <_IconListItem*>(__pListModel->LoadItem(DEFAULT_GROUP_INDEX, index));
float itemHeight = GetItemSize().height;
float itemWidth = GetItemSize().width;
FloatRectangle itemRect(0.0f, 0.0f, itemWidth, itemHeight);
- int drawingLine = !_FloatCompareGE(__scrollPosition, __topMargin) ?
- static_cast<int> ((__scrollPosition - __topMargin + __verticalSpacing) / __unitScrollLength) : 0;
+ int drawingLine = __scrollPosition > __topMargin ? _CoordinateSystemUtils::ConvertToInteger((__scrollPosition - __topMargin + __verticalSpacing) / __unitScrollLength) : 0;
int index = drawingLine * __itemCountPerAxis;
float endXPos = __endPosOfAxis;
float endYPos = __pIconListView->GetBounds().height;
// Draw Items
_IconListItem* pItem = null;
__firstDrawnIndex = index;
- while (!_FloatCompareGE(itemRect.y, endYPos))
+ while (itemRect.y < endYPos)
{
itemRect.x = __startPosOfAxis;
- while (!_FloatCompareGE(itemRect.x, endXPos) && index < itemCount)
+ while (itemRect.x < endXPos && index < itemCount)
{
// Draw Item
pItem = dynamic_cast <_IconListItem*>(__pListModel->LoadItem(DEFAULT_GROUP_INDEX, index));
_IconListItem* pItem = static_cast<_IconListItem*>(__pListModel->LoadItem(DEFAULT_GROUP_INDEX, index));
__pSelectAnimationVE = pItem->GetSelectAniVisualElement();
+ if (__pSelectAnimationVE == null)
+ {
+ return;
+ }
__pSelectAnimationVE->RemoveAllAnimations();
FloatRectangle startFloatRect = __pSelectAnimationVE->GetBounds();