ref: d2b67d2f95df97111977bb07639afe61b34d9ea2
parent: 9961d1c13446442ca866353187b0e747cca2095f
author: Noam Preil <[email protected]>
date: Fri Apr 8 20:06:29 EDT 2022
gs: scn is sc for device color spaces
--- a/op.c
+++ b/op.c
@@ -401,6 +401,9 @@
static int
ccolour2(Op *op, Page *p)
{
+ ColorSpace c = op->flags & Nonstroking ? p->GSactive->NSCS : p->GSactive->SCS;
+ if(c < 3)
+ return ccolour(op, p);
USED(op, p);
return 0;
}
@@ -1213,7 +1216,7 @@
{"SC", ccolour, -1,}, /* colour */
{"sc", ccolour, -1, Nonstroking,}, /* colour, nonstroking */
{"SCN", ccolour2, -1,}, /* color (more spaces) */
- {"scn", ccolour2, -1,}, /* color (more spaces), nonstroking */
+ {"scn", ccolour2, -1,Nonstroking}, /* color (more spaces), nonstroking */
{"G", cgray, 1,}, /* gray */
{"g", cgray, 1, Nonstroking,}, /* gray, nonstroking */
{"RG", crgb, 3,}, /* RGB */