12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include "sys-defines.h"
- #include "extern.h"
- static const char * const regis_line_types[PL_NUM_LINE_TYPES] =
- { "P1", "P1000", "P11100100", "P11110000", "P11111100", "P11101010", "P10" };
- void
- _pl_r_set_attributes (S___(Plotter *_plotter))
- {
- if (_plotter->regis_line_type_is_unknown
- || _plotter->regis_line_type != _plotter->drawstate->line_type)
- {
- char tmpbuf[32];
- sprintf (tmpbuf, "W(%s)\n",
- regis_line_types[_plotter->drawstate->line_type]);
- _write_string (_plotter->data, tmpbuf);
- _plotter->regis_line_type_is_unknown = false;
- _plotter->regis_line_type = _plotter->drawstate->line_type;
- }
- }
|