uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp
branchRCL_3
changeset 12 f93c875b566e
parent 8 46927d61fef3
child 17 c9d868f1e20c
equal deleted inserted replaced
10:7c5dd702d6d3 12:f93c875b566e
  1590                                      provider,
  1590                                      provider,
  1591                                      (THuiTextureUploadFlags)inputFlags);
  1591                                      (THuiTextureUploadFlags)inputFlags);
  1592 
  1592 
  1593         // If we are reusing deleted texture, remove it from "deleted" array
  1593         // If we are reusing deleted texture, remove it from "deleted" array
  1594         TInt index = iTextures.Find(&texture);
  1594         TInt index = iTextures.Find(&texture);
  1595         if (index != KErrNotFound)
  1595         if (index == KErrNotFound)
  1596            {
  1596            {
  1597            iTextures.Remove(index);                
  1597            iTextures.Append(env->TextureManager().Texture(id));                
  1598            }                    
  1598            }                    
  1599 
  1599 
  1600 
  1600 
  1601         // Add texture to skin content
  1601         // Add texture to skin content
  1602         texture.SetSkinContent((flags & EAlfTextureFlagSkinContent) != 0);
  1602         texture.SetSkinContent((flags & EAlfTextureFlagSkinContent) != 0);
  1725         // Make sure texture exists
  1725         // Make sure texture exists
  1726         CHuiTexture& textureRef = env->TextureManager().CreateTextureL(id, provider, THuiTextureUploadFlags(inputFlags));
  1726         CHuiTexture& textureRef = env->TextureManager().CreateTextureL(id, provider, THuiTextureUploadFlags(inputFlags));
  1727 
  1727 
  1728         // If we are reusing deleted texture, remove it from "deleted" array
  1728         // If we are reusing deleted texture, remove it from "deleted" array
  1729         TInt index = iTextures.Find(&textureRef);
  1729         TInt index = iTextures.Find(&textureRef);
  1730         if (index != KErrNotFound)
  1730         if (index == KErrNotFound)
  1731            {
  1731            {
  1732            iTextures.Remove(index);                
  1732            iTextures.Append(env->TextureManager().Texture(id));                
  1733            }                    
  1733            }                    
  1734         
  1734         
  1735         // Add texture to skin content
  1735         // Add texture to skin content
  1736         textureRef.SetSkinContent((flags & EAlfTextureFlagSkinContent) != 0);
  1736         textureRef.SetSkinContent((flags & EAlfTextureFlagSkinContent) != 0);
  1737 
  1737