Hello community, here is the log from the commit of package ghostscript-library checked in at Fri Nov 10 01:14:23 CET 2006. -------- --- ghostscript-library/ghostscript-library.changes 2006-11-03 17:05:07.000000000 +0100 +++ /mounts/work_src_done/STABLE/ghostscript-library/ghostscript-library.changes 2006-11-07 16:09:34.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Nov 7 16:08:12 CET 2006 - werner@suse.de + +- More on bug #203287: do not create a new bbox device for the + overprint opterator for an already existing memory device. + +------------------------------------------------------------------- ghostscript-mini.changes: same change Old: ---- espgs-8.15.3-x11alpha.dif New: ---- espgs-7.05.3-overprint.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghostscript-library.spec ++++++ --- /var/tmp/diff_new_pack.dlzy5A/_old 2006-11-10 01:13:55.000000000 +0100 +++ /var/tmp/diff_new_pack.dlzy5A/_new 2006-11-10 01:13:55.000000000 +0100 @@ -45,7 +45,7 @@ Autoreqprov: on Summary: Necessary Files for Running Ghostscript Version: 8.15.3 -Release: 14 +Release: 18 License: GNU General Public License (GPL) - all versions, Other License(s), see package BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: espgs-%{GSVER}.tar.bz2 @@ -70,7 +70,7 @@ Patch0: espgs-%{GSVER}.dif Patch1: espgs-8.15.2rc1-pdfrange.dif Patch2: espgs-8.15.2rc1-pdfsec.dif -Patch3: espgs-8.15.3-x11alpha.dif +Patch3: espgs-7.05.3-overprint.dif Patch10: gimp-print-%{PRINT}.dif Patch11: gimp-print-%{PRINT}-pcl.dif Patch12: gimp-print-%{PRINT}-epson_horizontal_adjustment.patch @@ -211,7 +211,7 @@ %package -n libgimpprint Version: 4.2.7 -Release: 91 +Release: 95 Summary: Gimp-Print libraries Group: Development/Libraries/C and C++ @@ -226,7 +226,7 @@ %package -n libgimpprint-devel Version: 4.2.7 -Release: 91 +Release: 95 Requires: %install_info_prereq Summary: Gimp-Print Include Files Group: Development/Libraries/C and C++ @@ -347,7 +347,7 @@ # %patch1 -p0 -b .pdfrange %patch2 -p0 -b .pdfsec -%patch3 -p0 -b .x11alpha +%patch3 -p0 -b .overprint %patch10 -p0 -b .stp %patch11 -p0 -b .stppcl %patch12 -p0 -b .escp2offset @@ -1107,6 +1107,9 @@ %endif # if not ghostscript-mini %changelog -n ghostscript-library +* Tue Nov 07 2006 - werner@suse.de +- More on bug #203287: do not create a new bbox device for the + overprint opterator for an already existing memory device. * Fri Nov 03 2006 - werner@suse.de - More on bug #203287 check for the bbox because otherwise some some areas will not be updated. ++++++ ghostscript-mini.spec ++++++ --- /var/tmp/diff_new_pack.dlzy5A/_old 2006-11-10 01:13:55.000000000 +0100 +++ /var/tmp/diff_new_pack.dlzy5A/_new 2006-11-10 01:13:55.000000000 +0100 @@ -45,7 +45,7 @@ Autoreqprov: on Summary: SuSE internal replacement for ghostscript-library and ghostscript-any (Ghostscript) Version: 8.15.3 -Release: 14 +Release: 16 License: GNU General Public License (GPL) - all versions, Other License(s), see package BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: espgs-%{GSVER}.tar.bz2 @@ -70,7 +70,7 @@ Patch0: espgs-%{GSVER}.dif Patch1: espgs-8.15.2rc1-pdfrange.dif Patch2: espgs-8.15.2rc1-pdfsec.dif -Patch3: espgs-8.15.3-x11alpha.dif +Patch3: espgs-7.05.3-overprint.dif Patch10: gimp-print-%{PRINT}.dif Patch11: gimp-print-%{PRINT}-pcl.dif Patch12: gimp-print-%{PRINT}-epson_horizontal_adjustment.patch @@ -203,7 +203,7 @@ %package -n libgimpprint Version: 4.2.7 -Release: 91 +Release: 95 Summary: Gimp-Print libraries Group: Development/Libraries/C and C++ @@ -218,7 +218,7 @@ %package -n libgimpprint-devel Version: 4.2.7 -Release: 91 +Release: 95 Requires: %install_info_prereq Summary: Gimp-Print Include Files Group: Development/Libraries/C and C++ @@ -339,7 +339,7 @@ # %patch1 -p0 -b .pdfrange %patch2 -p0 -b .pdfsec -%patch3 -p0 -b .x11alpha +%patch3 -p0 -b .overprint %patch10 -p0 -b .stp %patch11 -p0 -b .stppcl %patch12 -p0 -b .escp2offset @@ -1099,6 +1099,9 @@ %endif # if not ghostscript-mini %changelog -n ghostscript-mini +* Tue Nov 07 2006 - werner@suse.de +- More on bug #203287: do not create a new bbox device for the + overprint opterator for an already existing memory device. * Fri Nov 03 2006 - werner@suse.de - More on bug #203287 check for the bbox because otherwise some some areas will not be updated. ++++++ espgs-7.05.3-overprint.dif ++++++ --- src/gdevbbox.c +++ src/gdevbbox.c 2006-11-07 14:23:23.000000000 +0000 @@ -255,10 +255,10 @@ /* Initialize a bounding box device. */ void -gx_device_bbox_init(gx_device_bbox * dev, gx_device * target) +gx_device_bbox_init(gx_device_bbox * dev, gx_device * target, gs_memory_t * memory) { gx_device_init((gx_device *) dev, (const gx_device *)&gs_bbox_device, - (target ? target->memory : NULL), true); + (target ? target->memory : memory), true); if (target) { gx_device_forward_fill_in_procs((gx_device_forward *) dev); set_dev_proc(dev, get_initial_matrix, gx_forward_get_initial_matrix); @@ -273,10 +273,9 @@ set_dev_proc(dev, pattern_manage, gx_forward_pattern_manage); set_dev_proc(dev, fill_rectangle_hl_color, gx_forward_fill_rectangle_hl_color); set_dev_proc(dev, include_color_space, gx_forward_include_color_space); + set_dev_proc(dev, get_page_device, gx_forward_get_page_device); gx_device_set_target((gx_device_forward *)dev, target); } else { - if (!dev->memory) - dev->memory = &gs_memory_default; /* Used in gx_general_fill_path() */ gx_device_fill_in_procs((gx_device *)dev); gx_device_forward_fill_in_procs((gx_device_forward *) dev); } @@ -1169,6 +1168,17 @@ { gx_device_bbox *const bdev = (gx_device_bbox *) dev; gx_device *target = bdev->target; + const gs_state *ps = (const gs_state *)pis; + + /* + * Do not create a compositor for the target if overprint is active, + * this because then it is possible that the current page is erased + * for a bbox which equals the current page. + */ + if (gs_currentoverprint(ps) || gs_currentoverprintmode(ps)) { + *pcdev = dev; + return 0; + } /* * If there isn't a target, all we care about is the bounding box, @@ -1202,7 +1212,7 @@ (*dev_proc(cdev, close_device)) (cdev); return_error(gs_error_VMerror); } - gx_device_bbox_init(bbcdev, target); + gx_device_bbox_init(bbcdev, target, memory); gx_device_set_target((gx_device_forward *)bbcdev, cdev); bbcdev->box_procs = box_procs_forward; bbcdev->box_proc_data = bdev; --- src/gdevbbox.h +++ src/gdevbbox.h 2006-11-07 12:46:13.000000000 +0000 @@ -125,7 +125,7 @@ gx_device_finalize, st_device_forward, box_proc_data) /* Initialize a bounding box device. */ -void gx_device_bbox_init(gx_device_bbox * dev, gx_device * target); +void gx_device_bbox_init(gx_device_bbox * dev, gx_device * target, gs_memory_t * memory); /* Set whether a bounding box device propagates open/close to its target. */ void gx_device_bbox_fwd_open_close(gx_device_bbox * dev, --- src/gdevvec.c +++ src/gdevvec.c 2006-11-07 14:31:28.000000000 +0000 @@ -316,7 +316,7 @@ */ vdev->strm->procs.close = vdev->strm->procs.flush; if (vdev->bbox_device) { - gx_device_bbox_init(vdev->bbox_device, NULL); + gx_device_bbox_init(vdev->bbox_device, NULL, vdev->v_memory); gx_device_set_resolution((gx_device *) vdev->bbox_device, vdev->HWResolution[0], vdev->HWResolution[1]); --- src/gdevxini.c +++ src/gdevxini.c 2006-11-06 15:55:52.000000000 +0000 @@ -413,6 +413,7 @@ xdev->height = xid_height; xdev->initial_matrix.ty = xdev->height; } else { /* !xdev->pwin */ + memset(&xswa, 0, sizeof(XSetWindowAttributes)); xswa.event_mask = ExposureMask; xswa.background_pixel = xdev->background; xswa.border_pixel = xdev->borderColor; --- src/gximag3x.c +++ src/gximag3x.c 2006-11-07 12:46:39.000000000 +0000 @@ -541,7 +541,7 @@ if (bbdev == 0) return_error(gs_error_VMerror); - gx_device_bbox_init(bbdev, dev); + gx_device_bbox_init(bbdev, dev, mem); gx_device_bbox_fwd_open_close(bbdev, false); code = dev_proc(bbdev, begin_typed_image) ((gx_device *)bbdev, pis, pmat, pic, prect, pdcolor, pcpath, mem, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org