123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include "sys-defines.h"
- #include "extern.h"
- void
- _pl_r_paint_point (S___(Plotter *_plotter))
- {
- double xx, yy;
- int ixx, iyy;
- if (_plotter->drawstate->pen_type != 0)
-
- {
-
- xx = XD(_plotter->drawstate->pos.x, _plotter->drawstate->pos.y);
- yy = YD(_plotter->drawstate->pos.x, _plotter->drawstate->pos.y);
-
-
- if ((xx < REGIS_DEVICE_X_MIN_CLIP)
- || (xx > REGIS_DEVICE_X_MAX_CLIP)
- || (yy < REGIS_DEVICE_Y_MIN_CLIP)
- || (yy > REGIS_DEVICE_Y_MAX_CLIP))
- return;
-
-
- ixx = IROUND(xx);
- iyy = IROUND(yy);
-
-
- _pl_r_set_pen_color (S___(_plotter));
-
- _pl_r_regis_move (R___(_plotter) ixx, iyy);
- _write_string (_plotter->data, "V[]\n");
-
- _plotter->regis_pos.x = ixx;
- _plotter->regis_pos.y = iyy;
- }
- }
|