aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gim/gimcrras.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/gim/gimcrras.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gim/gimcrras.x')
-rw-r--r--sys/gio/gim/gimcrras.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/gio/gim/gimcrras.x b/sys/gio/gim/gimcrras.x
new file mode 100644
index 00000000..9372f85f
--- /dev/null
+++ b/sys/gio/gim/gimcrras.x
@@ -0,0 +1,26 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <gescape.h>
+
+# GIM_CREATERASTER -- Create, recreate, or resize a raster.
+
+procedure gim_createraster (gp, raster, type, width, height, depth)
+
+pointer gp #I graphics descriptor
+int raster #I raster number (0 is display window)
+int type #I raster type (normal,ximage,pixmap)
+int width #I raster width in pixels
+int height #I raster height in pixels
+int depth #I raster depth, bits per pixel
+
+short gim[GIM_CREATERASTER_LEN]
+
+begin
+ gim[GIM_CREATERASTER_RN] = raster
+ gim[GIM_CREATERASTER_RT] = type
+ gim[GIM_CREATERASTER_NX] = width
+ gim[GIM_CREATERASTER_NY] = height
+ gim[GIM_CREATERASTER_BP] = depth
+
+ call gescape (gp, GIM_CREATERASTER, gim, GIM_CREATERASTER_LEN)
+end