textrendering/textformatting/tagma/TMSOURCE.CPP
branchRCL_3
changeset 11 6971d1c87c9a
parent 0 1fb32624e06b
child 49 4d76f1414957
equal deleted inserted replaced
5:e96e8a131979 11:6971d1c87c9a
   249 @see CGraphicsContext::SetPenColor()
   249 @see CGraphicsContext::SetPenColor()
   250 */
   250 */
   251 EXPORT_C void MTmCustom::SetPenColor(CGraphicsContext& aGc,TLogicalRgb aColor) const
   251 EXPORT_C void MTmCustom::SetPenColor(CGraphicsContext& aGc,TLogicalRgb aColor) const
   252 	{	
   252 	{	
   253 	MTmCustomExtension c;
   253 	MTmCustomExtension c;
       
   254 	TUint index = aColor.SystemColorIndex();
       
   255 	if (index)
       
   256 	   aColor = SystemColor(index,aColor) & 0xFFFFFF;
   254 	c.SetPenColor(aGc,aColor);
   257 	c.SetPenColor(aGc,aColor);
   255 	}
   258 	}
   256 
   259 
   257 /** Sets the brush colour.
   260 /** Sets the brush colour.
   258 The brush is used for filling shapes and the background of text boxes. The 
   261 The brush is used for filling shapes and the background of text boxes. The