diff options
Diffstat (limited to 'contrib/gdevlx7.c')
-rw-r--r-- | contrib/gdevlx7.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/contrib/gdevlx7.c b/contrib/gdevlx7.c index 37f9697f..d4fb44a5 100644 --- a/contrib/gdevlx7.c +++ b/contrib/gdevlx7.c @@ -107,9 +107,14 @@ static dev_proc_get_params(lxm_get_params); static dev_proc_put_params(lxm_put_params); /* set up dispatch table. I follow gdevdjet in using gdev_prn_output_page */ -static const gx_device_procs lxm7000m_procs = - prn_params_procs(gdev_prn_open, gdev_prn_output_page, gdev_prn_close, - lxm_get_params, lxm_put_params); +static void +lxm7000m_initialize_device_procs(gx_device *dev) +{ + gdev_prn_initialize_device_procs_mono(dev); + + set_dev_proc(dev, get_params, lxm_get_params); + set_dev_proc(dev, put_params, lxm_put_params); +} /* The device descriptors */ @@ -140,7 +145,7 @@ typedef struct lxm_device_s { /* a sub-class of gx_device_printer */ #define LXR_1200 2 lxm_device far_data gs_lex7000_device = { - prn_device_std_body(lxm_device, lxm7000m_procs, "lex7000", + prn_device_std_body(lxm_device, lxm7000m_initialize_device_procs, "lex7000", DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, /* total width & height in 10x " - A4 or letter compiled in. * may be overriden by -sPAPERSIZE=a4 of -sPAPERSIZE=letter @@ -163,7 +168,7 @@ lxm_device far_data gs_lex7000_device = { }; lxm_device far_data gs_lex5700_device = { - prn_device_std_body(lxm_device, lxm7000m_procs, "lex5700", + prn_device_std_body(lxm_device, lxm7000m_initialize_device_procs, "lex5700", DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, /* total width & height in 10x " - A4 or letter compiled in. * may be overriden by -sPAPERSIZE=a4 of -sPAPERSIZE=letter @@ -186,7 +191,7 @@ lxm_device far_data gs_lex5700_device = { }; lxm_device far_data gs_lex3200_device = { - prn_device_std_body(lxm_device, lxm7000m_procs, "lex3200", + prn_device_std_body(lxm_device, lxm7000m_initialize_device_procs, "lex3200", DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, /* total width & height in 10x " - A4 or letter compiled in. * may be overriden by -sPAPERSIZE=a4 of -sPAPERSIZE=letter @@ -209,7 +214,7 @@ lxm_device far_data gs_lex3200_device = { }; lxm_device far_data gs_lex2050_device = { - prn_device_std_body(lxm_device, lxm7000m_procs, "lex2050", + prn_device_std_body(lxm_device, lxm7000m_initialize_device_procs, "lex2050", DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, /* total width & height in 10x " - A4 or letter compiled in. * may be overriden by -sPAPERSIZE=a4 of -sPAPERSIZE=letter |