don't access the low-level texture unnecessarily

This commit is contained in:
Glenn Maynard
2007-02-13 06:46:24 +00:00
parent e9a04f81b3
commit bf6327ad00
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void GradeDisplay::Scroll()
int iFrameNo = GetFrameIndex( m_PlayerNumber, m_Grade );
m_frectDestTexCoords = *GetTexture()->GetTextureCoordRect( iFrameNo );
m_frectDestTexCoords = *GetTextureCoordRectForState( iFrameNo );
m_frectStartTexCoords = m_frectDestTexCoords;
m_frectStartTexCoords.top += GRADES_TO_SCROLL * GRADE_FRAME_HEIGHT;
m_frectStartTexCoords.bottom += GRADES_TO_SCROLL * GRADE_FRAME_HEIGHT;