diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-06-11 12:47:58 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-06-25 00:19:12 +0100 |
commit | f697ed393a3f0cfffbf82b1f679cf6667b06611c (patch) | |
tree | fda08bb5e15f03ed388e040e64edaf2f4a710e4d /devices/gdevbit.c | |
parent | aae141b7849700a3b99a9222e09ed6ebaff5c61b (diff) | |
download | ghostpdl-f697ed393a3f0cfffbf82b1f679cf6667b06611c.tar.gz |
Refactor 'clist mutatable devices' from prn ones.
Devices that have to mutate to be clist ones need to be setup
in a particular way. After the standard gx_device header, they
are padded out to a large enough size that the clist header
fields can fit in. Then the device specific fields follow.
gdev_prn devices are the standard example of this. In order
to more easily allow other devices to work in the same way,
we refactor the padding/clist specific fields out into new
macros.
Diffstat (limited to 'devices/gdevbit.c')
-rw-r--r-- | devices/gdevbit.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/devices/gdevbit.c b/devices/gdevbit.c index d6c519499..86786fb97 100644 --- a/devices/gdevbit.c +++ b/devices/gdevbit.c @@ -347,7 +347,7 @@ const gx_device_bit gs_bitrgbtags_device = gx_default_end_page }, /* page_procs */ { 0 }, /* procs */ - { 0 }, /* skip */ + GX_CLIST_MUTATABLE_DEVICE_DEFAULTS, { bittags_print_page, gx_default_print_page_copies, @@ -364,17 +364,11 @@ const gx_device_bit gs_bitrgbtags_device = -1, /* Duplex_set */ false, /* file_is_new */ NULL, /* file */ - 0, /* buffer_space */ - NULL, /* buf */ - NULL, /* buffer_memory */ - NULL, /* bandlist_memory */ - 0, /* clist_disable_mask */ false, /* bg_print_requested */ {0}, /* bg_print */ 0, /* num_render_threads_requested */ NULL, /* saved_pages_list */ - {0}, /* save_procs_while_delaying_erasepage */ - {0} /* orig_procs */ + {0} /* save_procs_while_delaying_erasepage */ }; static void |