textrendering/textformatting/tagma/TMSOURCE.CPP
changeset 16 56cd22a7a1cb
parent 0 1fb32624e06b
child 49 4d76f1414957
equal deleted inserted replaced
0:1fb32624e06b 16:56cd22a7a1cb
   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