summaryrefslogtreecommitdiff
path: root/devices/gdevsnfb.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-03-22 18:16:20 +0000
committerRobin Watts <Robin.Watts@artifex.com>2021-04-20 15:03:02 +0100
commit1d9b79910d988d074f262c65d3559c5045a5343f (patch)
tree75c820d2965985d7ff74e6760d5c1a32b4d6a14d /devices/gdevsnfb.c
parent6f332dd0baee0135ebff0bf25c56e9adff0f944a (diff)
downloadghostpdl-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 'devices/gdevsnfb.c')
-rw-r--r--devices/gdevsnfb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/devices/gdevsnfb.c b/devices/gdevsnfb.c
index 99ee99cb6..d396ec72d 100644
--- a/devices/gdevsnfb.c
+++ b/devices/gdevsnfb.c
@@ -43,11 +43,8 @@ sonyfb_initialize(gx_device *dev)
return 0;
}
-static gx_device_procs sonyfb_procs =
- devprocs_initialize(sonyfb_initialize);
-
const gx_device_printer far_data gs_sonyfb_device =
- prn_device(sonyfb_procs, "sonyfb",
+ prn_device(sonyfb_initialize, "sonyfb",
102.4, /* width_10ths */
103.2, /* height_10ths */
100, /* x_dpi */