uifw/EikStd/coctlsrc/smileymanager.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 10 9f56a4e1b8ab
child 29 a8834a2e9a96
equal deleted inserted replaced
15:08e69e956a8c 16:71dd06cfe933
   177         icon->SetRect( aRect );
   177         icon->SetRect( aRect );
   178         CSmileyImageData* image( icon->ImageData() );
   178         CSmileyImageData* image( icon->ImageData() );
   179         if ( image && aRect.Size() != image->BitmapSize() )
   179         if ( image && aRect.Size() != image->BitmapSize() )
   180             {
   180             {
   181             image->SetBitmapSize( aRect.Size() );
   181             image->SetBitmapSize( aRect.Size() );
   182             if ( icon->IsPlayFinished() )
   182             for ( TInt i( 0 ); i < image->RefArrayCount(); i++ )
   183                 {
   183                 {
   184                 icon->PlayOneTime();
   184                 if ( image->RefIcon( i )->IsPlayFinished() )
   185                 iDrawer->CreateImageL( image );
   185                     {
       
   186                     image->RefIcon( i )->PlayOneTime();
       
   187                     }
   186                 }
   188                 }
       
   189             iDrawer->CreateImageL( image );            
   187             }
   190             }
   188         else if ( !image )
   191         else if ( !image )
   189             {
   192             {
   190             iDrawer->CreateImageByIconL( icon );
   193             iDrawer->CreateImageByIconL( icon );
   191             }
   194             }