[gs-cvs] rev 8226 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Fri Aug 31 13:53:42 PDT 2007
Author: leonardo
Date: 2007-08-31 13:53:42 -0700 (Fri, 31 Aug 2007)
New Revision: 8226
Modified:
trunk/gs/src/gxclip.c
trunk/gs/src/gxfill.c
Log:
Fix (graphics library) : Always set HWResolution to clipper device.
DETAILS :
Fixes the bug 689365
"Clipper device may have a wrong HWResolution".
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxclip.c
===================================================================
--- trunk/gs/src/gxclip.c 2007-08-31 19:09:47 UTC (rev 8225)
+++ trunk/gs/src/gxclip.c 2007-08-31 20:53:42 UTC (rev 8226)
@@ -114,6 +114,8 @@
dev->list = *gx_cpath_list(pcpath);
dev->translation.x = 0;
dev->translation.y = 0;
+ dev->HWResolution[0] = target->HWResolution[0];
+ dev->HWResolution[1] = target->HWResolution[1];
dev->target = target;
(*dev_proc(dev, open_device)) ((gx_device *)dev);
}
@@ -125,6 +127,8 @@
dev->list = *gx_cpath_list(pcpath);
dev->translation.x = 0;
dev->translation.y = 0;
+ dev->HWResolution[0] = target->HWResolution[0];
+ dev->HWResolution[1] = target->HWResolution[1];
gx_device_set_target((gx_device_forward *)dev, target);
gx_device_retain((gx_device *)dev, true); /* will free explicitly */
(*dev_proc(dev, open_device)) ((gx_device *)dev);
Modified: trunk/gs/src/gxfill.c
===================================================================
--- trunk/gs/src/gxfill.c 2007-08-31 19:09:47 UTC (rev 8225)
+++ trunk/gs/src/gxfill.c 2007-08-31 20:53:42 UTC (rev 8226)
@@ -643,8 +643,6 @@
dev = pdev;
} else {
gx_make_clip_device_on_stack(&cdev, pcpath1, pdev);
- cdev.HWResolution[0] = pdev->HWResolution[0];
- cdev.HWResolution[1] = pdev->HWResolution[1];
dev = (gx_device *)&cdev;
if ((*dev_proc(pdev, pattern_manage))(pdev,
gs_no_id, NULL, pattern_manage__shading_area) > 0)
More information about the gs-cvs
mailing list