--- a/windowing/windowserver/tdynamicres/src/surfaceutility.cpp Tue Feb 02 01:47:50 2010 +0200
+++ b/windowing/windowserver/tdynamicres/src/surfaceutility.cpp Fri Apr 16 16:21:04 2010 +0300
@@ -567,7 +567,7 @@
Mem::Copy(linePtr, surfacePtr, info.iSize.iWidth * BytesPerPixelL(info.iPixelFormat));
}
- TInt err = iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ TInt err = iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
if (err!=KErrNone)
LOG(("Error submitting update: 0x%X\n", err));
@@ -703,7 +703,7 @@
{
FillRectangleNoUpdateL(aSurface, aStartPos, aSize, aColor);
- TInt err = iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ TInt err = iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
if (err!=KErrNone)
LOG(("Error submitting update: 0x%X\n", err));
}
@@ -999,7 +999,7 @@
}
}
- TInt err =iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
if (err!=KErrNone)
LOG(("Error submitting update: 0x%X\n", err));
@@ -1274,7 +1274,7 @@
FanFill<TUint>(innerXY,info.iStride/4,(TUint*)surfacePtr,linesTL,linesBR,linesBL,linesTR);
}
- iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
CleanupStack::PopAndDestroy(/* chunk */);
}
@@ -1361,7 +1361,7 @@
chunk.Close();
- iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
}
/**
* Generates a bitmap equivalent to the surface.
@@ -1479,9 +1479,9 @@
@param aScreenNumber The screen to be updated where the surface is shown.
@param aSurface The surface which has been updated.
@param aRegion The area of the surface affected, or NULL for all of it.*/
-void CSurfaceUtility::SubmitUpdate(TInt aScreenNumber, const TSurfaceId& aSurface, const TRegion* aRegion,TInt aBufferNumber)
+void CSurfaceUtility::SubmitUpdate(TInt /* aScreenNumber */, const TSurfaceId& aSurface, const TRegion* aRegion,TInt aBufferNumber)
{
- TInt err =iSurfaceUpdateSession.SubmitUpdate(aScreenNumber, aSurface, aBufferNumber, aRegion);
+ TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, aBufferNumber, aRegion);
if (err!=KErrNone)
LOG(("Error submitting update: 0x%X\n", err));
}
@@ -1494,13 +1494,13 @@
@param aSurface The surface which has been updated.
@param aRegion The area of the surface affected, or NULL for all of it.*/
void CSurfaceUtility::MapAndSubmitUpdateL(RChunk& aChunk,
- TInt aScreenNumber,
+ TInt /* aScreenNumber */,
const TSurfaceId& aSurface,
const TRegion* aRegion)
{
User::LeaveIfError(iManager.MapSurface(aSurface, aChunk));
aChunk.Close();
- TInt err =iSurfaceUpdateSession.SubmitUpdate(aScreenNumber, aSurface, 0, aRegion);
+ TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, aRegion);
if (err!=KErrNone)
LOG(("Error submitting update: 0x%X\n", err));
}
@@ -1534,7 +1534,7 @@
aBitmap.GetScanLine(ptr, start, size.iWidth, bmpFormat);
}
- TInt err =iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+ TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
if (err!=KErrNone)
{
LOG(("Error submitting update: 0x%X\n", err));