scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/src/GifAnimationPluginControl.cpp
changeset 2 058b1fc1663a
parent 0 040fcad49f44
child 6 04e92f1a7966
equal deleted inserted replaced
1:35d9bdabf175 2:058b1fc1663a
   487 // if this is the first frame. 
   487 // if this is the first frame. 
   488 // ---------------------------------------------------------
   488 // ---------------------------------------------------------
   489 //
   489 //
   490 void CGifAnimationPluginControl::ViewerBitmapChangedL()
   490 void CGifAnimationPluginControl::ViewerBitmapChangedL()
   491     {   
   491     {   
   492     if ( iSourceImage )
   492     switch ( iAnimationState )
   493         {
   493         {
   494         switch ( iAnimationState )
   494         case EAnimationLoading:
   495             {
   495             {
   496             case EAnimationLoading:
   496             iAnimationState = EAnimationPlaying;
   497                 {
   497             break;
   498                 iAnimationState = EAnimationPlaying;
   498             }
   499                 break;
   499         case EAnimationPlaying:
   500                 }
   500             {
   501             case EAnimationPlaying:
   501             // do nothing 
   502                 {
   502             break;
   503                 // do nothing 
   503             }
   504                 break;
   504         case EAnimationNotReady:
   505                 }
   505         default:
   506             case EAnimationNotReady:
   506             {
   507             default:
   507             break;
   508                 {
       
   509                 break;
       
   510                 }
       
   511             }
   508             }
   512         }
   509         }
   513     
   510     
   514     if( iAnimationState == EAnimationPlaying )
   511     if( iAnimationState == EAnimationPlaying )
   515         {
   512         {