123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #include "sys-defines.h"
- #include "extern.h"
- void
- _pl_t_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 < TEK_DEVICE_X_MIN_CLIP)
- || (xx > TEK_DEVICE_X_MAX_CLIP)
- || (yy < TEK_DEVICE_Y_MIN_CLIP)
- || (yy > TEK_DEVICE_Y_MAX_CLIP))
- return;
-
-
- ixx = IROUND(xx);
- iyy = IROUND(yy);
-
-
- _pl_t_tek_mode (R___(_plotter) TEK_MODE_POINT);
-
-
- _pl_t_set_pen_color (S___(_plotter));
-
- _pl_t_tek_vector (R___(_plotter) ixx, iyy);
-
-
- _plotter->tek_pos.x = ixx;
- _plotter->tek_pos.y = iyy;
- }
- }
|