diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1999-04-15 19:21:31 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1999-04-15 19:21:31 +0000 |
commit | 3edb069fa9fb9ba141f205f41f045359e60db0b9 (patch) | |
tree | 5e16d34224230a911fc23f74be6b5c5f98534028 /gs/src | |
parent | d4883af46daf1b8da0c031ce1a59555cdd69da97 (diff) |
adds a procedure for releasing the bbox and removes near keyword (from
gs5.80).
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@815 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src')
-rw-r--r-- | gs/src/gdevbbox.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gs/src/gdevbbox.c b/gs/src/gdevbbox.c index 89a62d52e..26a2ecdea 100644 --- a/gs/src/gdevbbox.c +++ b/gs/src/gdevbbox.c @@ -175,14 +175,14 @@ bbox_close_device(gx_device * dev) /* Bounding box utilities */ -private void near +private void bbox_initialize(gs_fixed_rect * pr) { pr->p.x = pr->p.y = max_fixed; pr->q.x = pr->q.y = min_fixed; } -private void near +private void bbox_add_rect(gs_fixed_rect * pr, fixed x0, fixed y0, fixed x1, fixed y1) { if (x0 < pr->p.x) @@ -194,12 +194,12 @@ bbox_add_rect(gs_fixed_rect * pr, fixed x0, fixed y0, fixed x1, fixed y1) if (y1 > pr->q.y) pr->q.y = y1; } -private void near +private void bbox_add_point(gs_fixed_rect * pr, fixed x, fixed y) { bbox_add_rect(pr, x, y, x, y); } -private void near +private void bbox_add_int_rect(gs_fixed_rect * pr, int x0, int y0, int x1, int y1) { bbox_add_rect(pr, int2fixed(x0), int2fixed(y0), int2fixed(x1), @@ -231,6 +231,14 @@ gx_device_bbox_fwd_open_close(gx_device_bbox * dev, bool forward_open_close) dev->forward_open_close = forward_open_close; } +/* Release a bounding box device. */ +void +gx_device_bbox_release(gx_device_bbox *dev) +{ + /* Just release the reference to the target. */ + dev->target = NULL; +} + /* Read back the bounding box in 1/72" units. */ void gx_device_bbox_bbox(gx_device_bbox * dev, gs_rect * pbbox) |