use Copy()

This commit is contained in:
Glenn Maynard
2005-07-18 23:01:06 +00:00
parent 47489964d2
commit 2f8f782c47
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ void OptionRowType::Load( const CString &sType )
if( SHOW_UNDERLINES )
m_UnderlineParent.Load( sType, OptionsCursor::underline );
m_textTitle.LoadFromFont( THEME->GetPathF(sType,"title") );
//m_sprBullet.Load( THEME->GetPathG(sType,"bullet") );
m_sprBullet = ActorUtil::MakeActor( THEME->GetPathG(sType,"bullet") );
if( SHOW_OPTION_ICONS )
m_OptionIcon.Load( sType );
}
@@ -240,7 +240,7 @@ void OptionRow::InitText()
m_textTitle = new BitmapText( m_pParentType->m_textTitle );
m_Frame.AddChild( m_textTitle );
m_sprBullet = ActorUtil::MakeActor( THEME->GetPathG(m_pParentType->m_sType,"bullet") );
m_sprBullet = m_pParentType->m_sprBullet->Copy();
m_sprBullet->SetDrawOrder(-1); // under title
m_Frame.AddChild( m_sprBullet );
+1 -1
View File
@@ -94,7 +94,7 @@ private:
BitmapText m_textItemParent;
OptionsCursor m_UnderlineParent;
//Sprite m_sprBullet;
Actor *m_sprBullet;
BitmapText m_textTitle;
OptionIcon m_OptionIcon;