1
/* This file is part of the GNU plotutils package. Copyright (C) 1995,
2
1996, 1997, 1998, 1999, 2000, 2005, Free Software Foundation, Inc.
4
The GNU plotutils package is free software. You may redistribute it
5
and/or modify it under the terms of the GNU General Public License as
6
published by the Free Software foundation; either version 2, or (at your
7
option) any later version.
9
The GNU plotutils package is distributed in the hope that it will be
10
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
14
You should have received a copy of the GNU General Public License along
15
with the GNU plotutils package; see the file COPYING. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
17
Boston, MA 02110-1301, USA. */
1
19
#include "sys-defines.h"
6
_c_erase_page (S___(Plotter *_plotter))
8
_c_erase_page (S___(_plotter))
9
S___(Plotter *_plotter;)
23
_pl_c_erase_page (S___(Plotter *_plotter))
14
27
/* reinitialize `font used' array(s) for this page */
15
for (i = 0; i < NUM_PS_FONTS; i++)
28
for (i = 0; i < PL_NUM_PS_FONTS; i++)
16
29
_plotter->data->page->ps_font_used[i] = false;
18
31
/* deallocate table of user-specified line types, if any */
30
43
linetype_ptr = linetype_ptr->next;
31
44
free (old_linetype_ptr);
33
_plotter->data->page->extra = (voidptr_t)NULL;
46
_plotter->data->page->extra = (void *)NULL;
36
49
/* reset other page-specific, i.e. picture-specific, CGMPlotter
94
107
/* copy the bg color currently in the drawing state to the CGM-specific
95
108
part of the CGMPlotter; it'll be written to the output file at the
96
109
head of the picture */
97
_c_set_bg_color (S___(_plotter));
110
_pl_c_set_bg_color (S___(_plotter));