From 682f8522246e030fbbdea7391dce107754c485d3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 3 Jan 2022 03:01:59 +0000 Subject: CTAN sync 202201030301 --- graphics/asymptote/psfile.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'graphics/asymptote/psfile.cc') 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); -- cgit v1.2.3