diff options
Diffstat (limited to 'contrib/gdevop4w.c')
-rw-r--r-- | contrib/gdevop4w.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/contrib/gdevop4w.c b/contrib/gdevop4w.c index a92f6e63..4d5a38f5 100644 --- a/contrib/gdevop4w.c +++ b/contrib/gdevop4w.c @@ -94,12 +94,17 @@ static dev_proc_open_device(oki4w_open); static dev_proc_close_device(oki4w_close); static dev_proc_print_page(oki4w_print_page); -static gx_device_procs prn_hp_procs = - prn_params_procs(oki4w_open, gdev_prn_output_page, oki4w_close, - gdev_prn_get_params, gdev_prn_put_params); +static void +oki4w_initialize_device_procs(gx_device *dev) +{ + gdev_prn_initialize_device_procs_mono(dev); + + set_dev_proc(dev, open_device, oki4w_open); + set_dev_proc(dev, close_device, oki4w_close); +} gx_device_printer far_data gs_oki4w_device = - prn_device(prn_hp_procs, "oki4w", + prn_device(oki4w_initialize_device_procs, "oki4w", DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, X_DPI, Y_DPI, 0, 0, 0, 0, /* margins filled in by oki4w_open */ |