diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-09-27 11:19:24 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-10-20 18:22:47 +0200 |
commit | cc6be9c3577168805ec34b2d396e63361012282b (patch) | |
tree | 7dc794b08a1a6a786d540516c623cb1eebfb1863 /devices/gdev3852.c | |
parent | Import Ghostscript 9.54 (diff) | |
download | ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.gz ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.bz2 ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.zip |
Import Ghostscript 9.55ghostscript-9.55
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'devices/gdev3852.c')
-rw-r--r-- | devices/gdev3852.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/devices/gdev3852.c b/devices/gdev3852.c index 1b3377b2..7d50b4df 100644 --- a/devices/gdev3852.c +++ b/devices/gdev3852.c @@ -39,14 +39,23 @@ Modified by L. Peter Deutsch <ghost@aladdin.com> 1999-01-10 to remove _ss /* Should = 96 (KMG) */ #define LINE_SIZE ((X_DPI * 86 / 10 + 63) / 64 * 8) +static void +jetp3852_initialize_device_procs(gx_device *dev) +{ + gdev_prn_initialize_device_procs(dev); + + set_dev_proc(dev, output_page, gdev_prn_bg_output_page); + set_dev_proc(dev, map_rgb_color, gdev_pcl_3bit_map_rgb_color); + set_dev_proc(dev, map_color_rgb, gdev_pcl_3bit_map_color_rgb); + set_dev_proc(dev, encode_color, gdev_pcl_3bit_map_rgb_color); + set_dev_proc(dev, decode_color, gdev_pcl_3bit_map_color_rgb); +} + /* The device descriptor */ static dev_proc_print_page(jetp3852_print_page); /* Since the 'print_page' does not change the device, this device can print in the background */ -static gx_device_procs jetp3852_procs = - prn_color_procs(gdev_prn_open, gdev_prn_bg_output_page, gdev_prn_close, - gdev_pcl_3bit_map_rgb_color, gdev_pcl_3bit_map_color_rgb); const gx_device_printer far_data gs_jetp3852_device = - prn_device(jetp3852_procs, "jetp3852", + prn_device(jetp3852_initialize_device_procs, "jetp3852", 86, /* width_10ths, 8.6" (?) */ 110, /* height_10ths, 11" */ X_DPI, Y_DPI, |