diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-04-28 19:53:09 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-05-01 18:17:22 +0100 |
commit | 58b8cb0eb5a69d05de97002075763475d481fc7c (patch) | |
tree | c9be3df92c25fbaceb5d2fe43d6a843040879b51 | |
parent | ce43049e4d96507d130fb24fe0c6428e4adeb627 (diff) | |
download | ghostpdl-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.c | 4 |
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) |