summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-02-15 12:29:04 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-02-16 14:50:13 +0000
commita56475f02fb26fe49ef4eccdc38a073ba5074b6c (patch)
treec9d2c6acf72b88d6f7efb1ce5f25cc25754de153 /devices
parent6ff824c49601ab3b6fee6a9e1f45c0fed3cc1d1d (diff)
downloadghostpdl-a56475f02fb26fe49ef4eccdc38a073ba5074b6c.tar.gz
Add dev->non_strict_bounds flag.
This indicates that callers cannot assume that any calls to a device will be clipped at device bounds. In particular the alphabits device needs to set this as the width/height that it uses are misleading at best.
Diffstat (limited to 'devices')
-rw-r--r--devices/gdevbit.c1
-rw-r--r--devices/vector/gdevdocxw.c4
-rw-r--r--devices/vector/gdevtxtw.c4
3 files changed, 7 insertions, 2 deletions
diff --git a/devices/gdevbit.c b/devices/gdevbit.c
index a61e9aaa1..eb11b9580 100644
--- a/devices/gdevbit.c
+++ b/devices/gdevbit.c
@@ -263,6 +263,7 @@ const gx_device_bit gs_bitrgbtags_device =
0, /*icc_struct*/
GS_UNKNOWN_TAG, /* this device supports tags */
1, /* default interpolate_control */
+ 0, /* default non_srict_bounds */
{
gx_default_install,
gx_default_begin_page,
diff --git a/devices/vector/gdevdocxw.c b/devices/vector/gdevdocxw.c
index f6c10cce1..ec1b7276a 100644
--- a/devices/vector/gdevdocxw.c
+++ b/devices/vector/gdevdocxw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2022 Artifex Software, Inc.
+/* Copyright (C) 2001-2023 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -253,6 +253,7 @@ docxwrite_open_device(gx_device * dev)
dev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
set_linear_color_bits_mask_shift(dev);
dev->interpolate_control = 0;
+ dev->non_strict_bounds = 0;
tdev->alloc = NULL;
tdev->extract = NULL;
@@ -591,6 +592,7 @@ docxwrite_put_params(gx_device * dev, gs_param_list * plist)
dev->is_open = open;
dev->interpolate_control = 0;
+ dev->non_strict_bounds = 0;
return 0;
}
diff --git a/devices/vector/gdevtxtw.c b/devices/vector/gdevtxtw.c
index 71be58b6b..88316f64f 100644
--- a/devices/vector/gdevtxtw.c
+++ b/devices/vector/gdevtxtw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2022 Artifex Software, Inc.
+/* Copyright (C) 2001-2023 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -209,6 +209,7 @@ txtwrite_open_device(gx_device * dev)
dev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
set_linear_color_bits_mask_shift(dev);
dev->interpolate_control = 0;
+ dev->non_strict_bounds = 0;
code = install_internal_subclass_devices((gx_device **)&dev, NULL);
return code;
@@ -1191,6 +1192,7 @@ txtwrite_put_params(gx_device * dev, gs_param_list * plist)
dev->interpolate_control = 0;
+ dev->non_strict_bounds = 0;
return 0;
}