summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-04-28 19:53:09 +0100
committerRobin Watts <Robin.Watts@artifex.com>2023-05-01 18:17:22 +0100
commit58b8cb0eb5a69d05de97002075763475d481fc7c (patch)
treec9be3df92c25fbaceb5d2fe43d6a843040879b51
parentce43049e4d96507d130fb24fe0c6428e4adeb627 (diff)
downloadghostpdl-58b8cb0eb5a69d05de97002075763475d481fc7c.tar.gz
Fix tiny inefficiency in gdevp14.c knockout handling.
Copying a value twice. Fixing more for neatness than for expectation of any other benefit.
-rw-r--r--base/gdevp14.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gdevp14.c b/base/gdevp14.c
index ff7b24f1f..e8e2e8a79 100644
--- a/base/gdevp14.c
+++ b/base/gdevp14.c
@@ -7980,7 +7980,7 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
/* Complement the components for subtractive color spaces */
if (has_backdrop) {
if (additive) {
- for (k = 0; k < num_chan; ++k)
+ for (k = 0; k < num_comp; ++k)
dst[k] = bg_ptr[k * planestride];
} else {
for (k = 0; k < num_comp; ++k)
@@ -8208,7 +8208,7 @@ do_mark_fill_rectangle_ko_simple16(gx_device *dev, int x, int y, int w, int h,
/* Complement the components for subtractive color spaces */
if (has_backdrop) {
if (additive) {
- for (k = 0; k < num_chan; ++k)
+ for (k = 0; k < num_comp; ++k)
dst[k] = bg_ptr[k * planestride];
} else {
for (k = 0; k < num_comp; ++k)