vtuis/videotelui/src/CVtUiRemoteVideoControl.cpp
branchRCL_3
changeset 11 50bbdc59f9c4
parent 8 07d1685f0cd4
child 23 890b5dd735f8
--- a/vtuis/videotelui/src/CVtUiRemoteVideoControl.cpp	Fri Mar 12 15:43:03 2010 +0200
+++ b/vtuis/videotelui/src/CVtUiRemoteVideoControl.cpp	Mon Mar 15 12:40:49 2010 +0200
@@ -68,6 +68,10 @@
 //
 CVtUiRemoteVideoControl::~CVtUiRemoteVideoControl()
     {    
+    if ( iAppUi.EventMonitor() )
+        {
+        iAppUi.EventMonitor()->RemoveObserver( this );
+        }
     __VTPRINTENTER( "RemoteVideoControl.~" )
     __VTPRINTEXIT( "RemoteVideoControl.~" )
     }
@@ -93,7 +97,18 @@
     CreateWindowL();
     SetExtent( TPoint(), TSize() );
     ActivateL();
-    //Window().SetNonFading( ETrue );    
+	    
+    // Disable fading when using DP (eliminates nasty color error)
+    if ( FeatureManager::FeatureSupported( KFeatureIdDisplayPost ) )
+        {
+        Window().SetNonFading( ETrue );
+        }    
+  
+    if ( iAppUi.EventMonitor() )
+        {
+        iAppUi.EventMonitor()->AddObserverL( this );
+        }	
+	
     __VTPRINTEXIT( "RemoteVideoControl.ConstructL" )
     }