graphicscomposition/surfaceupdate/src/surfaceupdateclient.cpp
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
--- a/graphicscomposition/surfaceupdate/src/surfaceupdateclient.cpp	Tue Feb 02 01:47:50 2010 +0200
+++ b/graphicscomposition/surfaceupdate/src/surfaceupdateclient.cpp	Fri Apr 16 16:21:04 2010 +0300
@@ -18,13 +18,14 @@
 */
 
 #include <graphics/surfaceupdateclient.h>
+#include <e32debug.h>
 #include "surfaceupdate.h"
 
 inline void SurfaceUpdateAssert(TInt aCond)	{__ASSERT_ALWAYS(aCond, User::Panic(_L("surfaceupdateclient.cpp; assertion failed"), __LINE__));}
 
 EXPORT_C RSurfaceUpdateSession::RSurfaceUpdateSession() :
 	RSessionBase(), 
-	iStatusAvailable(NULL), iStatusDisplayed(NULL), iStatusDisplayedXTimes(NULL)
+	iStatusAvailable(NULL), iStatusDisplayed(NULL), iStatusDisplayedXTimes(NULL), iTimeStamp(NULL), iCount(0)
 	{
 	}
 
@@ -61,7 +62,12 @@
 									TInt aBuffer, const TRegion* aDirtyRegion)
 	{
 	SurfaceUpdateAssert(Handle() != KNullHandle);
-	
+
+#if defined _DEBUG
+	if (aScreen != KAllScreens)
+		RDebug::Printf("You should use KAllScreens as the argument for the screen: (other values OK for test)");
+#endif
+
 	if(aScreen < 0 || aBuffer < 0 || aSurfaceId.IsNull())
 		{
 		IssueRequestComplete(KErrArgument);