narrow the m_bGeneric case a bit; add explanation
This commit is contained in:
@@ -508,14 +508,16 @@ void BGAnimationLayer::LoadFromIni( const CString& sAniDir_, const IniKey& layer
|
|||||||
{
|
{
|
||||||
Actor* pActor = LoadFromActorFile( sAniDir, layer );
|
Actor* pActor = LoadFromActorFile( sAniDir, layer );
|
||||||
this->AddChild( pActor );
|
this->AddChild( pActor );
|
||||||
if( !m_bGeneric )
|
|
||||||
{
|
|
||||||
if( bStretch )
|
if( bStretch )
|
||||||
pActor->StretchTo( FullScreenRectF );
|
pActor->StretchTo( FullScreenRectF );
|
||||||
else
|
|
||||||
|
/* Annoying: old BGAnimations (those in theme BGAnimations/ and, more importantly,
|
||||||
|
* those included with songs) expect a 640x480 coordinate system with a default
|
||||||
|
* of 320x240. We can't just move the whole layer to the center (that'll move the
|
||||||
|
* whole coordinate system, not just the default), we have to move the actor. */
|
||||||
|
if( !m_bGeneric )
|
||||||
pActor->SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y );
|
pActor->SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case TYPE_PARTICLES:
|
case TYPE_PARTICLES:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user