equal
deleted
inserted
replaced
752 // the clipping rectangle is not set up correctly |
752 // the clipping rectangle is not set up correctly |
753 // atleast if the dirty area tracking is on.. |
753 // atleast if the dirty area tracking is on.. |
754 iGc->SetPenColor(iBackgroundColor); |
754 iGc->SetPenColor(iBackgroundColor); |
755 iGc->InitNewFrame(); |
755 iGc->InitNewFrame(); |
756 |
756 |
|
757 |
|
758 // if there is a fade effect in progress, we |
|
759 // need to clear the screen as fade effect uses |
|
760 // always blending. If we do not clear here |
|
761 // fade leaves trails in certain situations. |
|
762 if (iEnv.EffectsEngine()->HasActiveFadeEffect()) |
|
763 { |
|
764 iGc->SetPenColor(KRgbBlack); |
|
765 iGc->SetPenAlpha(0); |
|
766 iGc->Disable(CHuiGc::EFeatureClipping); |
|
767 iGc->Disable(CHuiGc::EFeatureBlending); |
|
768 iGc->Clear(); |
|
769 } |
|
770 |
|
771 |
757 if ( iDrawDirtyRegions ) |
772 if ( iDrawDirtyRegions ) |
758 { |
773 { |
759 // Show dirty. |
774 // Show dirty. |
760 // This will draw the whole background with black. |
775 // This will draw the whole background with black. |
761 iGc->SetPenColor(KRgbBlack); |
776 iGc->SetPenColor(KRgbBlack); |
1039 iEnv.Skin().TextureL(EHuiSkinBackgroundTexture); |
1054 iEnv.Skin().TextureL(EHuiSkinBackgroundTexture); |
1040 } |
1055 } |
1041 |
1056 |
1042 iClearBackground = aClearBackground; |
1057 iClearBackground = aClearBackground; |
1043 iBackgroundItems.Reset(); |
1058 iBackgroundItems.Reset(); |
|
1059 |
|
1060 // release background texture if clearing is set to None |
|
1061 if(aClearBackground == EClearNone) |
|
1062 { |
|
1063 iEnv.Skin().ReleaseTexture(EHuiSkinBackgroundTexture); |
|
1064 } |
1044 } |
1065 } |
1045 |
1066 |
1046 |
1067 |
1047 EXPORT_C void CHuiDisplay::SetBackgroundColor(const TRgb& aBackgroundColor) |
1068 EXPORT_C void CHuiDisplay::SetBackgroundColor(const TRgb& aBackgroundColor) |
1048 { |
1069 { |