From 2f8f782c47fa12a7cd7846dffb776f0ef6971741 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 18 Jul 2005 23:01:06 +0000 Subject: [PATCH] use Copy() --- stepmania/src/OptionRow.cpp | 4 ++-- stepmania/src/OptionRow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index c0a89052e5..fb903d6f74 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -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 ); diff --git a/stepmania/src/OptionRow.h b/stepmania/src/OptionRow.h index 05bf72bec4..5a5d75c243 100644 --- a/stepmania/src/OptionRow.h +++ b/stepmania/src/OptionRow.h @@ -94,7 +94,7 @@ private: BitmapText m_textItemParent; OptionsCursor m_UnderlineParent; - //Sprite m_sprBullet; + Actor *m_sprBullet; BitmapText m_textTitle; OptionIcon m_OptionIcon;