summaryrefslogtreecommitdiff
path: root/devices/gdev4081.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-04-26 18:10:56 +0100
committerRobin Watts <Robin.Watts@artifex.com>2021-04-26 19:49:13 +0100
commit20610dc28ee3cf7e64ad46f11e9b96fb3befba00 (patch)
treecaf1ecd133beea5ab478858fc8f022081912ab89 /devices/gdev4081.c
parentedd20b3b8c3c1a7117dd5dbee0b54cd1de7838bf (diff)
downloadghostpdl-20610dc28ee3cf7e64ad46f11e9b96fb3befba00.tar.gz
Split initialize device proc into two.
The device initialize function currently performs 2 jobs. Firstly, it fills out the device_procs. Secondly, it performs any minimal initialization required by the device (typically none). At various points in the code we want to be able to copy procs from one 'prototype' device to another, so we call initialize for that. This populates the device procs, but does other work that typically requires a 'derived device' structure rather than a vanilla gx_device to work in. Accordingly, we split the job into two; initialize_device_procs (the first part) and initialize_device (the second part). The initialize_device_procs function will set up the initialize_device function pointer along with the rest if required.
Diffstat (limited to 'devices/gdev4081.c')
-rw-r--r--devices/gdev4081.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdev4081.c b/devices/gdev4081.c
index c33e8eccc..fd72fdff6 100644
--- a/devices/gdev4081.c
+++ b/devices/gdev4081.c
@@ -23,7 +23,7 @@
static dev_proc_print_page(r4081_print_page);
const gx_device_printer far_data gs_r4081_device =
/* The print_page proc is compatible with allowing bg printing */
- prn_device(gdev_prn_initialize_mono_bg, "r4081",
+ prn_device(gdev_prn_initialize_device_procs_mono_bg, "r4081",
85, /* width_10ths, 8.5" */
110, /* height_10ths, 11" */
X_DPI, Y_DPI,