summaryrefslogtreecommitdiff
path: root/base/gdevm64.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 /base/gdevm64.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 'base/gdevm64.c')
-rw-r--r--base/gdevm64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gdevm64.c b/base/gdevm64.c
index f9f923b8e..46da84ab5 100644
--- a/base/gdevm64.c
+++ b/base/gdevm64.c
@@ -46,7 +46,7 @@ declare_mem_procs(mem_true64_copy_mono, mem_true64_copy_color, mem_true64_fill_r
/* The device descriptor. */
const gx_device_memory mem_true64_device =
- mem_device("image64", 64, 0, mem_dev_initialize);
+ mem_device("image64", 64, 0, mem_dev_initialize_device_procs);
const gdev_mem_functions gdev_mem_fns_64 =
{
@@ -352,7 +352,7 @@ declare_mem_procs(mem64_word_copy_mono, mem64_word_copy_color, mem64_word_fill_r
/* Here is the device descriptor. */
const gx_device_memory mem_true64_word_device =
- mem_device("image64w", 64, 0, mem_word_dev_initialize);
+ mem_device("image64w", 64, 0, mem_word_dev_initialize_device_procs);
const gdev_mem_functions gdev_mem_fns_64w =
{