diff -r 5266b1f337bd -r 8baf28733c3d phoneuis/BubbleManager/Src/BMUtils.cpp --- a/phoneuis/BubbleManager/Src/BMUtils.cpp Wed Sep 01 12:30:10 2010 +0100 +++ b/phoneuis/BubbleManager/Src/BMUtils.cpp Tue Sep 14 21:18:17 2010 +0300 @@ -1465,72 +1465,6 @@ } // --------------------------------------------------------------------------- -// BubbleUtils::AddTransparencyToBubbleImageL -// --------------------------------------------------------------------------- -// -void BubbleUtils::AddTransparencyToBubbleImageL( - const TAknsItemID& aFrameID, - const TRect& aOuterRect, - const TRect& aInnerRect, - CEikImage*& aBubble ) - { - - const CFbsBitmap* currentMask = aBubble->Mask(); - TSize maskSize( currentMask->SizeInPixels() ); - TRect rect( maskSize ); - - // create transparency frame - CFbsBitmap* transparency = new(ELeave) CFbsBitmap; - CleanupStack::PushL( transparency ); - User::LeaveIfError( transparency->Create( aOuterRect.Size(), - EGray256 ) ); - CFbsBitmapDevice* transparencyDev = CFbsBitmapDevice::NewL( transparency ); - CleanupStack::PushL( transparencyDev ); - CFbsBitGc* transparencyCtx; - User::LeaveIfError( transparencyDev->CreateContext( transparencyCtx ) ); - CleanupStack::PushL( transparencyCtx ); - MAknsSkinInstance* skin = AknsUtils::SkinInstance(); - AknsDrawUtils::DrawFrame( skin, - *transparencyCtx, - aOuterRect, - aInnerRect, - aFrameID, - KAknsIIDDefault, - KAknsDrawParamDefault ); - - CleanupStack::PopAndDestroy( 2, transparencyDev ); - - // create solid black mask - CFbsBitmap* solidBlack = new(ELeave) CFbsBitmap; - CleanupStack::PushL( solidBlack ); - User::LeaveIfError( solidBlack->Create( maskSize, EGray256 ) ); - CFbsBitmapDevice* dev = CFbsBitmapDevice::NewL( solidBlack ); - CleanupStack::PushL( dev ); - CFbsBitGc* gc; - User::LeaveIfError( dev->CreateContext( gc ) ); - CleanupStack::PushL( gc ); - - gc->SetBrushColor( KRgbBlack ); - gc->SetBrushStyle( CGraphicsContext::ESolidBrush ); - gc->DrawRect( rect ); - - // blit original mask on the black mask using transparency mask - gc->BitBltMasked( TPoint(0,0), - currentMask, - TRect( currentMask->SizeInPixels() ), - transparency, - ETrue ); - - CleanupStack::PopAndDestroy( 2, dev); - - CleanupStack::Pop(solidBlack); - aBubble->SetMask( solidBlack ); - - CleanupStack::PopAndDestroy( transparency ); - delete currentMask; - } - -// --------------------------------------------------------------------------- // BubbleUtils::PrepareCallObjectToBubbleImageL // --------------------------------------------------------------------------- //