summaryrefslogtreecommitdiff
path: root/gs
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2011-07-02 13:50:28 -0700
committerChris Liddell <chris.liddell@artifex.com>2012-03-15 11:52:06 +0000
commit990ddef4b65d9cecb4db9fdc4caf770c07af7ed2 (patch)
tree91b4d2df22053dc750580770f1e323f1de56c03a /gs
parent83bda7cfa7f21fe5190348bab4278fcbe51bd01d (diff)
Change to using encode_color instead of map_rgb_color since map_rgb_color are obsolete.
The encode_color proc replaced this and devices may not have it set to a valid proc. Detected under certain circumstances with the tiffsep device using compressed color encoding.
Diffstat (limited to 'gs')
-rw-r--r--gs/base/gdevmem.c4
-rw-r--r--gs/base/gdevmr1.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/gs/base/gdevmem.c b/gs/base/gdevmem.c
index d3069f888..90e072e9a 100644
--- a/gs/base/gdevmem.c
+++ b/gs/base/gdevmem.c
@@ -177,7 +177,7 @@ gs_make_mem_device(gx_device_memory * dev, const gx_device_memory * mdproto,
cv[0] = cv[1] = cv[2] = 0;
gdev_mem_mono_set_inverted(dev, (target == 0 ||
- (*dev_proc(dev, map_rgb_color))((gx_device *)dev, cv) != 0));
+ (*dev_proc(dev, encode_color))((gx_device *)dev, cv) != 0));
}
check_device_separable((gx_device *)dev);
gx_device_fill_in_procs((gx_device *)dev);
@@ -235,7 +235,7 @@ gs_make_mem_device_with_copydevice(gx_device_memory ** ppdev,
cv[0] = cv[1] = cv[2] = 0;
gdev_mem_mono_set_inverted(pdev, (target == 0 ||
- (*dev_proc(pdev, map_rgb_color))((gx_device *)pdev, cv) != 0));
+ (*dev_proc(pdev, encode_color))((gx_device *)pdev, cv) != 0));
}
check_device_separable((gx_device *)pdev);
gx_device_fill_in_procs((gx_device *)pdev);
diff --git a/gs/base/gdevmr1.c b/gs/base/gdevmr1.c
index a9da4dda2..6835a5f96 100644
--- a/gs/base/gdevmr1.c
+++ b/gs/base/gdevmr1.c
@@ -52,8 +52,7 @@ mem_mono_strip_copy_rop(gx_device * dev, const byte * sdata,
gx_color_value cv[3];
cv[0] = cv[1] = cv[2] = 0;
gdev_mem_mono_set_inverted(mdev,
- (*dev_proc(dev, map_rgb_color))
- (dev, cv) != 0);
+ (*dev_proc(dev, encode_color)) (dev, cv) != 0);
}
invert = mdev->palette.data[0] != 0;