diff options
author | Andre Fischer <af@openoffice.org> | 2010-06-14 18:00:56 +0200 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-06-14 18:00:56 +0200 |
commit | cd4385a9aecd65ed1c360708614eff7f6fe381bb (patch) | |
tree | 22eec4abca164dfe6f89aa9b8e5a6b5086e23bf5 /tools | |
parent | a2e79b9f1049b8f296b7f147a91cdd0a9cf82287 (diff) |
renaissance1: #i107215# Fixed wrong rounding in HSBtoRGB.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/color.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 37e9dedf9259..5dc41f292668 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -244,8 +244,8 @@ ColorData Color::HSBtoRGB( USHORT nHue, USHORT nSat, USHORT nBri ) f = dH - n; UINT8 a = (UINT8) ( nB * ( 100 - nSat ) / 100 ); - UINT8 b = (UINT8) ( nB * ( 100 - ( (double)nSat * f + 0.5 ) ) / 100 ); - UINT8 c = (UINT8) ( nB * ( 100 - ( (double)nSat * ( 1.0 - f ) + 0.5 ) ) / 100 ); + UINT8 b = (UINT8) ( nB * ( 100 - ( (double)nSat * f ) ) / 100 ); + UINT8 c = (UINT8) ( nB * ( 100 - ( (double)nSat * ( 1.0 - f ) ) ) / 100 ); switch( n ) { |