summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2009-02-02 08:58:11 +0000
committerRay Johnston <ray.johnston@artifex.com>2009-02-02 08:58:11 +0000
commitf7858049da6c4a500d337bd28a2bac353c210a23 (patch)
tree30e3ab3e5c004a7e0d50b9100597541c4d95ebe2
parent130a3fec9c7aefdd2dd3c2aeaf0ea3d8d1a1ec16 (diff)
downloadghostpdl-f7858049da6c4a500d337bd28a2bac353c210a23.tar.gz
Fix broken bbox device caused by the 'fillpage' commit of rev 9288. This
resolves bug 690260 and other cases where the bbox was all 0's. DETAILS: When the 'RECT_IS_PAGE' check was removed, the BBOX_INIT_BOX function was invoked unconditionally MUCH too often, leading to an empty bbox (0's) which also caused the x11 device to not update many areas from the under- lying image24 buffer to the screen. The 'BBOX_INIT_BOX' should only be needed when the params change the geometry or when 'fillpage' is done. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9431 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/base/gdevbbox.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gs/base/gdevbbox.c b/gs/base/gdevbbox.c
index 1858bea2e..c8523e719 100644
--- a/gs/base/gdevbbox.c
+++ b/gs/base/gdevbbox.c
@@ -136,7 +136,7 @@ gx_device_bbox gs_bbox_device =
NULL, /* get_color_comp_index */
NULL, /* encode_color */
NULL, /* decode_color */
- NULL, /*pattern_manage; */
+ NULL, /* pattern_manage */
NULL, /* fill_rectangle_hl_color */
NULL, /* include_color_space */
NULL, /* fill_linear_color_scanline */
@@ -394,10 +394,6 @@ bbox_fill_rectangle(gx_device * dev, int x, int y, int w, int h,
int code =
(tdev == 0 ? 0 :
dev_proc(tdev, fill_rectangle)(tdev, x, y, w, h, color));
-
- /* Check for erasing the entire page. */
- if (!BBOX_INIT_BOX(bdev))
- return code;
if (color != bdev->transparent)
BBOX_ADD_INT_RECT(bdev, x, y, x + w, y + h);
return code;
@@ -468,9 +464,6 @@ bbox_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
(tdev == 0 ? 0 :
dev_proc(tdev, strip_tile_rectangle)
(tdev, tiles, x, y, w, h, color0, color1, px, py));
-
- if (!BBOX_INIT_BOX(bdev))
- return code;
BBOX_ADD_INT_RECT(bdev, x, y, x + w, y + h);
return code;
}