From a07ebba4ffa044e9b1b29d7a0b2923c22e25f22d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 6 Jan 2005 18:57:52 +0000 Subject: [PATCH] narrow the m_bGeneric case a bit; add explanation --- stepmania/src/BGAnimationLayer.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 225fa46cab..717ba55806 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -508,13 +508,15 @@ void BGAnimationLayer::LoadFromIni( const CString& sAniDir_, const IniKey& layer { Actor* pActor = LoadFromActorFile( sAniDir, layer ); this->AddChild( pActor ); + if( bStretch ) + pActor->StretchTo( FullScreenRectF ); + + /* 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 ) - { - if( bStretch ) - pActor->StretchTo( FullScreenRectF ); - else - pActor->SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y ); - } + pActor->SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y ); } break; case TYPE_PARTICLES: