/* * Initiailze a high level saved color to null */ void gx_hld_saved_color_init(gx_hl_saved_color * psc) { gx_device_color temp_devc; memset(psc, 0, sizeof(*psc)); /* clear the entire structure */ psc->color_space_id = psc->pattern_id = gs_no_id; color_set_null(&temp_devc); temp_devc.type->save_dc(&temp_devc, &(psc->saved_dev_color)); }
static int gx_remap_Separation(const gs_client_color * pcc, const gs_color_space * pcs, gx_device_color * pdc, const gs_imager_state * pis, gx_device * dev, gs_color_select_t select) { int code = 0; if (pcs->params.separation.sep_type != SEP_NONE) code = gx_default_remap_color(pcc, pcs, pdc, pis, dev, select); else { color_set_null(pdc); } /* Save original color space and color info into dev color */ pdc->ccolor.paint.values[0] = pcc->paint.values[0]; pdc->ccolor_valid = true; return code; }