uiacceltk/hitchcock/ServerCore/Src/alfvisualhandlers.cpp
branchRCL_3
changeset 17 3ac8bf5c5014
parent 0 15bf7259bb7c
child 24 f93c875b566e
equal deleted inserted replaced
11:46927d61fef3 17:3ac8bf5c5014
   767             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   767             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   768             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   768             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   769             if (engine)
   769             if (engine)
   770                 {
   770                 {
   771                 CHuiFxEffect* effect = NULL;
   771                 CHuiFxEffect* effect = NULL;
   772                 engine->LoadEffectL( params->iFileName, effect, iVisual->Effectable() );
   772                 engine->LoadEffectL( params->iFileName, effect, iVisual->Effectable(), NULL , NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );
   773                 // The effect will be automatically set to the visual if parsing succeeds
   773                 // The effect will be automatically set to the visual if parsing succeeds
   774                 }
   774                 }
   775             break;
   775             break;
   776             }
   776             }
   777         case EAlfVisualSetGroupEffect:
   777         case EAlfVisualSetGroupEffect:
   782             if (engine)
   782             if (engine)
   783                 {
   783                 {
   784                 CHuiFxEffect* effect = NULL;
   784                 CHuiFxEffect* effect = NULL;
   785                 // this will add the group, if it does not exist already
   785                 // this will add the group, if it does not exist already
   786                 // Begin and End group events are supposed to come through GfxTransEffect API.
   786                 // Begin and End group events are supposed to come through GfxTransEffect API.
   787                 engine->BeginGroupEffect(groupHandle); 
   787                 engine->BeginGroupEffect(groupHandle);
   788                 engine->LoadGroupEffectL( params->iFileName, effect, iVisual->Effectable(),groupHandle );
   788                 engine->LoadGroupEffectL( params->iFileName, effect, iVisual->Effectable(),groupHandle, NULL, NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );
   789                 // The effect will be automatically set to the visual if parsing succeeds
   789                 // The effect will be automatically set to the visual if parsing succeeds
   790                 }
   790                 }
   791             break;
   791             break;
   792             }            
   792             }            
   793         case EAlfVisualRemoveEffect:
   793         case EAlfVisualRemoveEffect: