graphicsdeviceinterface/bitgdi/tbit/toutlineandshadowfonts.cpp
branchRCL_3
changeset 7 5e51caaeeb72
parent 0 5d03bc08d59c
child 19 bbf46f59e123
equal deleted inserted replaced
6:de3d5b6102ac 7:5e51caaeeb72
   993 	if(aSetColors)
   993 	if(aSetColors)
   994 		{
   994 		{
   995 		iGc->SetBrushColor(aSettings.brushColor);
   995 		iGc->SetBrushColor(aSettings.brushColor);
   996 		iGc->SetPenColor(aSettings.penColor);
   996 		iGc->SetPenColor(aSettings.penColor);
   997 		iGc->SetShadowColor(aSettings.shadowColor);
   997 		iGc->SetShadowColor(aSettings.shadowColor);
       
   998 
       
   999 		if (aSettings.backgroundColor != KRgbWhite)
       
  1000 			{
       
  1001 			iGc->SetDrawMode(CGraphicsContext::EDrawModeWriteAlpha);
       
  1002 			CFbsBitmap* bgBitmap = new CFbsBitmap;
       
  1003 			bgBitmap->Create(TSize(1, 1), EColor16MA);
       
  1004 			bgBitmap->BeginDataAccess();
       
  1005 			Mem::Copy(bgBitmap->DataAddress(), &(aSettings.backgroundColor), 4);
       
  1006 			bgBitmap->EndDataAccess(EFalse);
       
  1007 			iGc->DrawBitmap(TRect(TPoint(0, 0), iBitmap->SizeInPixels()), bgBitmap);
       
  1008 			delete bgBitmap;
       
  1009 			iGc->SetDrawMode(CGraphicsContext::EDrawModePEN);
       
  1010 			}
   998 		}
  1011 		}
   999 	}
  1012 	}
  1000 
  1013 
  1001 void CTOutlineAndShadowFonts::RunTestCaseL(TInt aCurTestCase)
  1014 void CTOutlineAndShadowFonts::RunTestCaseL(TInt aCurTestCase)
  1002 	{
  1015 	{