Index: eps.c =================================================================== --- eps.c (revision 36255) +++ eps.c (revision 36256) @@ -56,6 +56,7 @@ rnd_coord_t linewidth; int lastcap; int lastcolor; + rnd_composite_op_t drawing_mode; } rnd_eps_t; static rnd_eps_t pctx_, *pctx = &pctx_; @@ -62,7 +63,6 @@ static int print_group[PCB_MAX_LAYERGRP]; static int print_layer[PCB_MAX_LAYER]; static int fast_erase = -1; -static rnd_composite_op_t drawing_mode; static const rnd_export_opt_t eps_attribute_list[] = { /* other HIDs expect this to be first. */ @@ -474,7 +474,7 @@ { if (direct) return; - drawing_mode = op; + pctx->drawing_mode = op; switch(op) { case RND_HID_COMP_RESET: fprintf(pctx->outf, "gsave\n"); @@ -495,7 +495,7 @@ static void eps_set_color(rnd_hid_gc_t gc, const rnd_color_t *color) { - if (drawing_mode == RND_HID_COMP_NEGATIVE) { + if (pctx->drawing_mode == RND_HID_COMP_NEGATIVE) { gc->color = 0xffffff; gc->erase = 1; return;