Lines Matching refs:nDiff
330 sal_uInt8 nDiff; in approachColor() local
334 nDiff = rTo.GetRed() - rFrom.GetRed(); in approachColor()
335 aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
339 nDiff = rFrom.GetRed() - rTo.GetRed(); in approachColor()
340 aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
348 nDiff = rTo.GetGreen() - rFrom.GetGreen(); in approachColor()
349 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
353 nDiff = rFrom.GetGreen() - rTo.GetGreen(); in approachColor()
354 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
362 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor()
363 aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
367 nDiff = rFrom.GetBlue() - rTo.GetBlue(); in approachColor()
368 aColor.SetBlue( rFrom.GetBlue() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()