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/gdevwpr2.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/gdevwpr2.c')
-rw-r--r-- | devices/gdevwpr2.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/devices/gdevwpr2.c b/devices/gdevwpr2.c index c91e82a1..eeb94896 100644 --- a/devices/gdevwpr2.c +++ b/devices/gdevwpr2.c @@ -147,10 +147,20 @@ static dev_proc_put_params(win_pr2_put_params); static int win_pr2_set_bpp(gx_device * dev, int depth); -static const gx_device_procs win_pr2_procs = -prn_color_params_procs(win_pr2_open, gdev_prn_output_page, win_pr2_close, - win_pr2_map_rgb_color, win_pr2_map_color_rgb, - win_pr2_get_params, win_pr2_put_params); +static void +win_pr2_initialize_device_procs(gx_device *dev) +{ + gdev_prn_initialize_device_procs(dev); + + set_dev_proc(dev, open_device, win_pr2_open); + set_dev_proc(dev, close_device, win_pr2_close); + set_dev_proc(dev, map_rgb_color, win_pr2_map_rgb_color); + set_dev_proc(dev, map_color_rgb, win_pr2_map_color_rgb); + set_dev_proc(dev, get_params, win_pr2_get_params); + set_dev_proc(dev, put_params, win_pr2_put_params); + set_dev_proc(dev, encode_color, win_pr2_map_rgb_color); + set_dev_proc(dev, decode_color, win_pr2_map_color_rgb); +} #define PARENT_WINDOW HWND_DESKTOP BOOL CALLBACK CancelDlgProc(HWND, UINT, WPARAM, LPARAM); @@ -197,8 +207,11 @@ struct gx_device_win_pr2_s { gx_device_win_pr2 far_data gs_mswinpr2_device = { - prn_device_std_body(gx_device_win_pr2, win_pr2_procs, "mswinpr2", - DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, 72.0, 72.0, + prn_device_std_body(gx_device_win_pr2, + win_pr2_initialize_device_procs, + "mswinpr2", + DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, + 72.0, 72.0, 0, 0, 0, 0, 0, win_pr2_print_page), /* depth = 0 */ 0, /* hdcprn */ |