equal
deleted
inserted
replaced
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 { |