Revised patch for unsupported EWsWinOpSetShape - (Bug 1863) NewGraphicsArchitecture
authorWilliam Roberts <williamr@symbian.org>
Fri, 28 May 2010 16:02:15 +0100
branchNewGraphicsArchitecture
changeset 84 de3e07519bb7
parent 83 77b29c7ebdbb
child 86 841b49c57c50
child 87 0709f76d91e5
child 104 2ae553ab1feb
Revised patch for unsupported EWsWinOpSetShape - (Bug 1863)
windowing/windowserver/nga/CLIENT/RWINDOW.CPP
windowing/windowserver/nga/SERVER/openwfc/cliwin.cpp
--- a/windowing/windowserver/nga/CLIENT/RWINDOW.CPP	Fri May 28 15:45:54 2010 +0100
+++ b/windowing/windowserver/nga/CLIENT/RWINDOW.CPP	Fri May 28 16:02:15 2010 +0100
@@ -1203,9 +1203,7 @@
 	__ASSERT_DEBUG(!aRegion.CheckError(),Panic(EW32PanicInvalidRegion));
 	const TInt regionCount=aRegion.Count();
 	TPtrC8 ptrRect(reinterpret_cast<const TUint8*>(aRegion.RectangleList()),regionCount*sizeof(TRect));
-//	return(WriteReplyByProvidingRemoteReadAccess(&regionCount,sizeof(regionCount),&ptrRect,EWsWinOpSetShape));
-	RDebug::Printf("Bug 1863 - RWindowBase::SetShape() deprecated and non-functional. Disabling the panic.");
-	return KErrNone;
+	return(WriteReplyByProvidingRemoteReadAccess(&regionCount,sizeof(regionCount),&ptrRect,EWsWinOpSetShape));
 	}
 
 /** 
--- a/windowing/windowserver/nga/SERVER/openwfc/cliwin.cpp	Fri May 28 15:45:54 2010 +0100
+++ b/windowing/windowserver/nga/SERVER/openwfc/cliwin.cpp	Fri May 28 16:02:15 2010 +0100
@@ -867,6 +867,10 @@
 			case EWsWinOpShadowDisabled:
 				OwnerPanic(EWservPanicOpcode); //this op code is deprecated, should never be generated by the client
 				break;
+			case EWsWinOpSetShape:
+				// Still called from CEikCba::SetBoundingRect, but not supportable in OpenWF - see Bug 1863
+				// OwnerPanic(EWservPanicOpcode); //this op code is not supported in OpenWF
+				break;
 			case EWsWinOpRequiredDisplayMode:
 				if (Backup()!=NULL)
 					OwnerPanic(EWservPanicBackupDisplayMode);