diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-03-22 18:16:20 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-04-20 15:03:02 +0100 |
commit | 1d9b79910d988d074f262c65d3559c5045a5343f (patch) | |
tree | 75c820d2965985d7ff74e6760d5c1a32b4d6a14d /base/gdevbbox.c | |
parent | 6f332dd0baee0135ebff0bf25c56e9adff0f944a (diff) | |
download | ghostpdl-1d9b79910d988d074f262c65d3559c5045a5343f.tar.gz |
Further rationalisation of device init.
Move the initialize procedure out of the device procs table,
and into a bare function pointer at the start of the device proc.
Devices just initialise this, and the rest should fall into place.
This means changes to the device instantion macros (and all the uses
thereof), but makes the code nicer overall. In particular, this
removes the vestigial 'static_procs' structure.
Diffstat (limited to 'base/gdevbbox.c')
-rw-r--r-- | base/gdevbbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gdevbbox.c b/base/gdevbbox.c index db0ddb6e2..ebd644e13 100644 --- a/base/gdevbbox.c +++ b/base/gdevbbox.c @@ -120,11 +120,11 @@ gx_device_bbox gs_bbox_device = /* * Define the device as 8-bit gray scale to avoid computing halftones. */ - std_device_dci_body(gx_device_bbox, 0, "bbox", + std_device_dci_body(gx_device_bbox, bbox_initialize, "bbox", MAX_COORD, MAX_COORD, MAX_RESOLUTION, MAX_RESOLUTION, 1, 8, 255, 0, 256, 1), - devprocs_initialize(bbox_initialize), + { 0 }, 0, /* target */ 1, /*true *//* free_standing */ 1 /*true *//* forward_open_close */ |