38
print_get_colour(ps->drawing, colour, &hatch, &r, &g, &b);
38
print_get_colour(ps->drawing, colour, ps->colour, &hatch, &r, &g, &b);
41
ps_printf(ps, "%g %g %g setrgbcolor fill\n", r, g, b);
42
} else if (hatch == HATCH_SOLID || hatch == HATCH_CLEAR) {
43
ps_printf(ps, "%d setgray fill\n", hatch == HATCH_CLEAR);
42
ps_printf(ps, "%g %g %g setrgbcolor fill\n", r, g, b);
44
ps_printf(ps, "%g setgray fill\n", r);
45
46
/* Clip to the region. */
46
47
ps_printf(ps, "gsave clip\n");
80
print_get_colour(ps->drawing, colour, &hatch, &r, &g, &b);
81
print_get_colour(ps->drawing, colour, ps->colour, &hatch, &r, &g, &b);
84
ps_printf(ps, "%g %g %g setrgbcolor%s\n", r, g, b, suffix);
86
ps_printf(ps, "%g setgray%s\n", r, suffix);
89
* Stroking in hatched colours is not permitted.
91
assert(hatch == HATCH_SOLID || hatch == HATCH_CLEAR);
92
ps_printf(ps, "%d setgray%s\n", hatch == HATCH_CLEAR, suffix);
84
* Stroking in hatched colours is not permitted.
89
ps_printf(ps, "%g %g %g setrgbcolor%s\n", r, g, b, suffix);
91
ps_printf(ps, "%g setgray%s\n", r, suffix);
96
94
static void ps_setcolour(psdata *ps, int colour)