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
+2 -2
View File
@@ -29,8 +29,8 @@ void CourseEntryDisplay::Load()
SET_XY_AND_ON_COMMAND( &m_sprFrame );
this->AddChild( &m_sprFrame );
this->m_size.x = (float) m_sprFrame.GetTexture()->GetSourceFrameWidth();
this->m_size.y = (float) m_sprFrame.GetTexture()->GetSourceFrameHeight();
this->m_size.x = m_sprFrame.GetUnzoomedWidth();
this->m_size.y = m_sprFrame.GetUnzoomedHeight();
m_textNumber.SetName( "Number" );
m_textNumber.LoadFromFont( THEME->GetPathF("CourseEntryDisplay","number") );