--- ray/src/util/rad.c 2015/08/02 01:32:15 2.120 +++ ray/src/util/rad.c 2015/10/22 18:09:37 2.122 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rad.c,v 2.120 2015/08/02 01:32:15 greg Exp $"; +static const char RCSid[] = "$Id: rad.c,v 2.122 2015/10/22 18:09:37 greg Exp $"; #endif /* * Executive program for oconv, rpict and pfilt @@ -806,6 +806,13 @@ renderopts( /* set rendering options */ { char pmapf[256], *bw; + if (vdef(PGMAP)) { + *op = '\0'; + bw = sskip2(vval(PGMAP), 2); + atos(pmapf, sizeof(pmapf), vval(PGMAP)); + op = addarg(addarg(op, "-ap"), pmapf); + if (atoi(bw) > 0) op = addarg(op, bw); + } switch(vscale(QUALITY)) { case LOW: lowqopts(op, po); @@ -816,12 +823,6 @@ renderopts( /* set rendering options */ case HIGH: hiqopts(op, po); break; - } - if (vdef(PGMAP)) { - bw = sskip2(vval(PGMAP), 2); - atos(pmapf, sizeof(pmapf), vval(PGMAP)); - op = addarg(addarg(op, "-ap"), pmapf); - if (atoi(bw) > 0) op = addarg(op, bw); } if (vdef(PCMAP)) { bw = sskip2(vval(PCMAP), 2);