equal
deleted
inserted
replaced
147 TInt aTextureId, |
147 TInt aTextureId, |
148 TInt /*aErrorCode*/) |
148 TInt /*aErrorCode*/) |
149 { |
149 { |
150 if ((iAnimationState & EInitializing) && aTexture.iFrameCount > 1 && aTextureId == iTextureId1) |
150 if ((iAnimationState & EInitializing) && aTexture.iFrameCount > 1 && aTextureId == iTextureId1) |
151 { |
151 { |
|
152 delete iTexture; |
152 iTexture = iTexture1; |
153 iTexture = iTexture1; |
|
154 delete iTexture2; |
|
155 iTexture2 = NULL; |
153 TRAP_IGNORE(iTexture2 = &iManager.LoadTextureL(*iFilename,EHuiTextureUploadFlagDefault, iTextureId2, 1)) |
156 TRAP_IGNORE(iTexture2 = &iManager.LoadTextureL(*iFilename,EHuiTextureUploadFlagDefault, iTextureId2, 1)) |
154 iFrameInterval = aTexture.iFrameInterval; |
157 iFrameInterval = aTexture.iFrameInterval; |
155 iFrameCount = aTexture.iFrameCount; |
158 iFrameCount = aTexture.iFrameCount; |
156 return; |
159 return; |
157 } |
160 } |