From: Chris Hanson Date: Tue, 21 Feb 1995 23:13:58 +0000 (+0000) Subject: Add two new primitives, and export an operation to clobber the window X-Git-Tag: 20090517-FFI~6616 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=29bb131a7fe3019f176c5946b9718d9bc8aef0f8;p=mit-scheme.git Add two new primitives, and export an operation to clobber the window field of an event -- thus allowing "user" events from graphics windows to contain the "user" graphics device rather than an internal descriptor. --- diff --git a/v7/src/runtime/os2winp.scm b/v7/src/runtime/os2winp.scm index f91836234..1046be828 100644 --- a/v7/src/runtime/os2winp.scm +++ b/v7/src/runtime/os2winp.scm @@ -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)) (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