Add two new primitives, and export an operation to clobber the window
authorChris Hanson <org/chris-hanson/cph>
Tue, 21 Feb 1995 23:13:58 +0000 (23:13 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 21 Feb 1995 23:13:58 +0000 (23:13 +0000)
field of an event -- thus allowing "user" events from graphics windows
to contain the "user" graphics device rather than an internal
descriptor.

v7/src/runtime/os2winp.scm

index f91836234b797fa5a4129e95de1135c338bb3b4d..1046be828c90f98a2589a32f9bfc100000d0b047 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: os2winp.scm,v 1.4 1995/02/14 00:36:04 cph Exp $
+$Id: os2winp.scm,v 1.5 1995/02/21 23:13:58 cph Exp $
 
 Copyright (c) 1995 Massachusetts Institute of Technology
 
@@ -38,6 +38,7 @@ MIT in each case. |#
 (declare (usual-integrations))
 \f
 (define-primitives
+  (os2pm-synchronize 0)
   (os2ps-bitblt 6)
   (os2ps-clear 5)
   (os2ps-create-bitmap 3)
@@ -45,6 +46,7 @@ MIT in each case. |#
   (os2ps-destroy-bitmap 1)
   (os2ps-destroy-memory-ps 1)
   (os2ps-draw-point 3)
+  (os2ps-get-bitmap 1)
   (os2ps-get-bitmap-bits 5)
   (os2ps-get-bitmap-parameters 1)
   (os2ps-line 3)
@@ -94,6 +96,7 @@ MIT in each case. |#
 
 (define-integrable (event-type event) (vector-ref event 0))
 (define-integrable (event-wid event) (vector-ref event 1))
+(define-integrable (set-event-wid! event wid) (vector-set! event 1 wid))
 
 (define-macro (define-event name type . slots)
   `(BEGIN