diff options
Diffstat (limited to 'contrib/japanese/gdevnpdl.c')
-rw-r--r-- | contrib/japanese/gdevnpdl.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/japanese/gdevnpdl.c b/contrib/japanese/gdevnpdl.c index 9deadaee..9c6d6bba 100644 --- a/contrib/japanese/gdevnpdl.c +++ b/contrib/japanese/gdevnpdl.c @@ -118,12 +118,19 @@ static dev_proc_print_page_copies(npdl_print_page_copies); static dev_proc_put_params(npdl_put_params); static dev_proc_image_out(npdl_image_out); -static gx_device_procs npdl_prn_procs = -prn_params_procs(npdl_open, gdev_prn_output_page, npdl_close, - lprn_get_params, npdl_put_params); +static void +npdl_initialize_device_procs(gx_device *dev) +{ + gdev_prn_initialize_device_procs_mono(dev); + + set_dev_proc(dev, open_device, npdl_open); + set_dev_proc(dev, close_device, npdl_close); + set_dev_proc(dev, get_params, lprn_get_params); + set_dev_proc(dev, put_params, npdl_put_params); +} gx_device_lprn far_data gs_npdl_device = -lprn_duplex_device(gx_device_lprn, npdl_prn_procs, "npdl", +lprn_duplex_device(gx_device_lprn, npdl_initialize_device_procs, "npdl", X_DPI, Y_DPI, /* default resolution */ 0.0, 0.0, 0.0, 0.0, /* margins */ 1, npdl_print_page_copies, npdl_image_out); |