scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/src/GifAnimationPluginControl.cpp
equal
deleted
inserted
replaced
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 { |