equivalent and easier to understand: fCurrentItem is simply centered

This commit is contained in:
Glenn Maynard
2005-09-26 20:43:45 +00:00
parent e24e9d8c99
commit 9110303bff
+2 -5
View File
@@ -229,11 +229,8 @@ void ActorScroller::PositionItemsAndDrawPrimitives( bool bDrawPrimitives )
}
else
{
float fPositionOnEdgeOfScreenTop = -(m_fNumItemsToDraw)/2.f;
float fPositionOnEdgeOfScreenBottom = (m_fNumItemsToDraw)/2.f;
fFirstItemToDraw = fPositionOnEdgeOfScreenTop + m_fCurrentItem;
fLastItemToDraw = fPositionOnEdgeOfScreenBottom + m_fCurrentItem;
fFirstItemToDraw = m_fCurrentItem - (m_fNumItemsToDraw)/2.f;
fLastItemToDraw = m_fCurrentItem + (m_fNumItemsToDraw)/2.f;
}
bool bDelayedDraw = m_bDrawByZPosition && !m_bLoop;