equal
deleted
inserted
replaced
923 break; |
923 break; |
924 } |
924 } |
925 case EAlfClearRect: |
925 case EAlfClearRect: |
926 { |
926 { |
927 commandBuffer->SetStatusFlags(EHuiCanvasBufferContainsDrawing); |
927 commandBuffer->SetStatusFlags(EHuiCanvasBufferContainsDrawing); |
|
928 TRgb transpclearcolor(KRgbWhite); |
|
929 transpclearcolor.SetAlpha(0); |
|
930 if (iBrushColor == transpclearcolor) |
|
931 { |
|
932 commandBuffer->SetStatusFlags(EHuiCanvasBufferContainsTransparentClear); |
|
933 } |
928 WsClearRectL(); |
934 WsClearRectL(); |
929 break; |
935 break; |
930 } |
936 } |
931 case EAlfResetBrushPattern: |
937 case EAlfResetBrushPattern: |
932 { |
938 { |
1890 iCanvasWsGc->WsResetL(); |
1896 iCanvasWsGc->WsResetL(); |
1891 |
1897 |
1892 #ifdef __ALF_SYMBIAN_RWINDOW_CLEARING_BUG_WORKAROUND__ |
1898 #ifdef __ALF_SYMBIAN_RWINDOW_CLEARING_BUG_WORKAROUND__ |
1893 iTestBrushColor.SetInternal(0); |
1899 iTestBrushColor.SetInternal(0); |
1894 #endif |
1900 #endif |
|
1901 iBrushColor.SetInternal(0); |
1895 } |
1902 } |
1896 |
1903 |
1897 void CHuiCanvasWsPainter::WsSetBrushColorL() |
1904 void CHuiCanvasWsPainter::WsSetBrushColorL() |
1898 { |
1905 { |
1899 TRgb color = 0; |
1906 TRgb color = 0; |
1901 iCanvasWsGc->WsSetBrushColorL(color); |
1908 iCanvasWsGc->WsSetBrushColorL(color); |
1902 |
1909 |
1903 #ifdef __ALF_SYMBIAN_RWINDOW_CLEARING_BUG_WORKAROUND__ |
1910 #ifdef __ALF_SYMBIAN_RWINDOW_CLEARING_BUG_WORKAROUND__ |
1904 iTestBrushColor = color; |
1911 iTestBrushColor = color; |
1905 #endif |
1912 #endif |
|
1913 iBrushColor = color; |
1906 } |
1914 } |
1907 |
1915 |
1908 void CHuiCanvasWsPainter::WsSetBrushOriginL() |
1916 void CHuiCanvasWsPainter::WsSetBrushOriginL() |
1909 { |
1917 { |
1910 TPoint point(0,0); |
1918 TPoint point(0,0); |