diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1999-02-25 09:19:48 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1999-02-25 09:19:48 +0000 |
commit | 1b668ca124442221ab64d711ebb1c2ab199a4be2 (patch) | |
tree | ad73728187b6a22c920aa50ab0be3402128da018 /pcl/pgvector.c | |
parent | 5a3444f4f60e8bdfc37b1772e093b98011f8c8ff (diff) |
It is not necessary to return to the starting point of a circle when
drawing in polygon mode.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@740 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pgvector.c')
-rw-r--r-- | pcl/pgvector.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pcl/pgvector.c b/pcl/pgvector.c index 1fcd0a974..0d22887c3 100644 --- a/pcl/pgvector.c +++ b/pcl/pgvector.c @@ -265,13 +265,13 @@ hpgl_CI(hpgl_args_t *pargs, hpgl_state_t *pgls) hpgl_call(hpgl_add_arc_to_path(pgls, pgls->g.pos.x, pgls->g.pos.y, radius, 0.0, 360.0, chord, true, hpgl_plot_draw_absolute, reset_ctm)); - if ( !pgls->g.polygon_mode ) - hpgl_call(hpgl_draw_arc(pgls)); - /* move back to the center */ - hpgl_call(hpgl_add_point_to_path(pgls, pos.x, pos.y, - hpgl_plot_move_absolute, reset_ctm)); - if ( !pgls->g.polygon_mode ) + if ( !pgls->g.polygon_mode ) { + hpgl_call(hpgl_draw_arc(pgls)); + /* move back to the center */ + hpgl_call(hpgl_add_point_to_path(pgls, pos.x, pos.y, + hpgl_plot_move_absolute, reset_ctm)); hpgl_call(hpgl_clear_current_path(pgls)); + } return 0; } |