auto-hide "_blank"; gameplay hold note test case 44->50FPS since

unused hold tails are hidden
This commit is contained in:
Glenn Maynard
2004-04-16 05:41:47 +00:00
parent 1460b58e42
commit 2f6c0d08a7
+5
View File
@@ -228,6 +228,11 @@ bool Sprite::LoadFromTexture( RageTextureID ID )
ASSERT( m_pTexture != NULL );
/* Hack: if we load "_blank", mark the actor hidden, so we can short-circuit
* rendering later on. (This helps NoteField rendering.) */
if( !SetExtension(Basename(ID.filename), "").CompareNoCase("_blank") )
this->SetHidden( true );
// the size of the sprite is the size of the image before it was scaled
Sprite::m_size.x = (float)m_pTexture->GetSourceFrameWidth();
Sprite::m_size.y = (float)m_pTexture->GetSourceFrameHeight();