diff options
author | Norbert Preining <norbert@preining.info> | 2022-01-03 03:01:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-01-03 03:01:59 +0000 |
commit | 682f8522246e030fbbdea7391dce107754c485d3 (patch) | |
tree | d6acc984092fdb35e6525203c6b2ab7ccefaf749 /graphics/asymptote/psfile.cc | |
parent | 699dd7db121d61d809020fe9dbc0321c3e937745 (diff) |
CTAN sync 202201030301
Diffstat (limited to 'graphics/asymptote/psfile.cc')
-rw-r--r-- | graphics/asymptote/psfile.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/asymptote/psfile.cc b/graphics/asymptote/psfile.cc index 3a13b37225..2a8a92739c 100644 --- a/graphics/asymptote/psfile.cc +++ b/graphics/asymptote/psfile.cc @@ -58,8 +58,7 @@ static const char *rectangular="matrix is not rectangular"; void psfile::writefromRGB(unsigned char r, unsigned char g, unsigned char b, ColorSpace colorspace, size_t ncomponents) { - static const double factor=1.0/255.0; - pen p(r*factor,g*factor,b*factor); + pen p(byteinv(r),byteinv(g),byteinv(b)); p.convert(); if(!p.promote(colorspace)) reportError(inconsistent); |