diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /noao/imred/dtoi/hdicfit/hdicgredraw.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/imred/dtoi/hdicfit/hdicgredraw.x')
-rw-r--r-- | noao/imred/dtoi/hdicfit/hdicgredraw.x | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noao/imred/dtoi/hdicfit/hdicgredraw.x b/noao/imred/dtoi/hdicfit/hdicgredraw.x new file mode 100644 index 00000000..d42a0740 --- /dev/null +++ b/noao/imred/dtoi/hdicfit/hdicgredraw.x @@ -0,0 +1,22 @@ +include <gset.h> + +define MSIZE 2.0 + +# HD_REDRAW -- Redraw a data point. The old position marker is erased, +# the new marker drawn, and the cursor moved to the new location. + +procedure hd_redraw (gp, oldx, oldy, newx, newy) + +pointer gp # Pointer to graphics stream +real oldx # Old x coordinate +real oldy # Old y coordinate +real newx # New x coordinate +real newy # New y coordinate + +begin + call gseti (gp, G_PMLTYPE, GL_CLEAR) + call gmark (gp, oldx, oldy, GM_PLUS, MSIZE, MSIZE) + call gseti (gp, G_PMLTYPE, GL_SOLID) + call gmark (gp, newx, newy, GM_PLUS, MSIZE, MSIZE) + call gscur (gp, newx, newy) +end |