equivalent and easier to understand: fCurrentItem is simply centered
This commit is contained in:
@@ -229,11 +229,8 @@ void ActorScroller::PositionItemsAndDrawPrimitives( bool bDrawPrimitives )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float fPositionOnEdgeOfScreenTop = -(m_fNumItemsToDraw)/2.f;
|
fFirstItemToDraw = m_fCurrentItem - (m_fNumItemsToDraw)/2.f;
|
||||||
float fPositionOnEdgeOfScreenBottom = (m_fNumItemsToDraw)/2.f;
|
fLastItemToDraw = m_fCurrentItem + (m_fNumItemsToDraw)/2.f;
|
||||||
|
|
||||||
fFirstItemToDraw = fPositionOnEdgeOfScreenTop + m_fCurrentItem;
|
|
||||||
fLastItemToDraw = fPositionOnEdgeOfScreenBottom + m_fCurrentItem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool bDelayedDraw = m_bDrawByZPosition && !m_bLoop;
|
bool bDelayedDraw = m_bDrawByZPosition && !m_bLoop;
|
||||||
|
|||||||
Reference in New Issue
Block a user