From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gfrinit.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sys/gio/gfrinit.x (limited to 'sys/gio/gfrinit.x') diff --git a/sys/gio/gfrinit.x b/sys/gio/gfrinit.x new file mode 100644 index 00000000..bf8181ed --- /dev/null +++ b/sys/gio/gfrinit.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# GFRINIT -- Initialize the internal state variables of GIO for a new frame. +# The state of all the attribute packets is set to UNSET to force them to be +# retransmitted to the graphics kernel when i/o occurs. + +procedure gfrinit (gp) + +pointer gp # graphics descriptor +pointer ap + +begin + # Force retransmission of the WCS. + GP_WCSSTATE(gp) = UNSET + + # Force retransmission of the attribute packets. + ap = GP_PLAP(gp); PL_STATE(ap) = UNSET + ap = GP_PMAP(gp); PM_STATE(ap) = UNSET + ap = GP_FAAP(gp); FA_STATE(ap) = UNSET + ap = GP_TXAP(gp); TX_STATE(ap) = UNSET + ap = GP_TXAPCUR(gp); TX_STATE(ap) = UNSET + + call gpl_reset() +end -- cgit