From: SakirSoft <sak...@us...> - 2005-07-06 18:58:50
|
Update of /cvsroot/openmugen/OpenMugen/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10268 Modified Files: SffManager.cpp Log Message: Fixed Airfile offset bug with BLT_FLIPH flag Index: SffManager.cpp =================================================================== RCS file: /cvsroot/openmugen/OpenMugen/src/SffManager.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -p -r1.7 -r1.8 --- SffManager.cpp 1 Jul 2005 18:04:10 -0000 1.7 +++ SffManager.cpp 6 Jul 2005 18:58:40 -0000 1.8 @@ -224,10 +224,17 @@ void CSffManager::BlitAnim(s16 x, s16 y, { if(Anim==0) return; + + if( nFlags & CVideoSystem::BLT_FLIPH ) + x -= Anim->AnimationElement[nCurrentImage].x; + else + x += Anim->AnimationElement[nCurrentImage].x; + + y += Anim->AnimationElement[nCurrentImage].y; BlitSprite(Anim->AnimationElement[nCurrentImage].nGroupNumber, Anim->AnimationElement[nCurrentImage].nImageNumber, - x+Anim->AnimationElement[nCurrentImage].x,y+Anim->AnimationElement[nCurrentImage].y,x_scale,y_scale); + x,y,x_scale,y_scale); if( bPause ) { |