summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-06-11 12:04:03 +0100
committerRobin Watts <Robin.Watts@artifex.com>2020-06-25 00:19:12 +0100
commitaae141b7849700a3b99a9222e09ed6ebaff5c61b (patch)
tree69e161c85b4806ad07a54b73d52a22e3ee308f44 /cups
parent8f40f4b1aca7a7f75ecf83469892478311ca21e1 (diff)
downloadghostpdl-aae141b7849700a3b99a9222e09ed6ebaff5c61b.tar.gz
Refactor gdev_space_params slightly.
The gdev_space_params structure is also known as gdev_prn_space_params, which is slightly misleading as there is nothing prn specific about it. Rename all uses of gdev_prn_space_params within the code to be gdev_space_params. Leave gdev_prn_space_params defined as a typedef so that any customer code will not be affected. Rename compare_gdev_prn_space_params to be gdev_space_params_cmp to better reflect its non-prn-specific nature. Make it non-static and move it to gsdevice.c.
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index 4ed1a980b..aac6adaeb 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -96,7 +96,7 @@
/* This should go into gdevprn.h, or, better yet, gdevprn should
acquire an API for changing resolution. */
int gdev_prn_maybe_realloc_memory(gx_device_printer *pdev,
- gdev_prn_space_params *old_space,
+ gdev_space_params *old_space,
int old_width, int old_height,
bool old_page_uses_transparency);
@@ -1180,7 +1180,7 @@ done:
void
cups_get_space_params(const gx_device_printer *pdev,
/* I - Printer device */
- gdev_prn_space_params *space_params)
+ gdev_space_params *space_params)
/* O - Space parameters */
{
float cache_size; /* Size of tile cache in bytes */
@@ -3100,7 +3100,7 @@ cups_put_params(gx_device *pdev, /* I - Device info */
int margins_set; /* Were the margins set? */
int size_set; /* Was the size set? */
int color_set; /* Were the color attrs set? */
- gdev_prn_space_params sp_old; /* Space parameter data */
+ gdev_space_params sp_old; /* Space parameter data */
int width, /* New width of page */
height, /* New height of page */
width_old = 0, /* Previous width of page */