Fix bug: GRAPHICS-TYPE-AVAILABLE? shouldn't be signalling errors.
authorChris Hanson <org/chris-hanson/cph>
Sat, 23 Mar 1996 06:43:31 +0000 (06:43 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 23 Mar 1996 06:43:31 +0000 (06:43 +0000)
v7/src/runtime/graphics.scm

index bf3aeeac294b647f3e341f55ee5bd8a0c666f227..29dd12884cc7325bbf9fe2a1aa0ab0df5ea0e40e 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: graphics.scm,v 1.15 1995/02/21 23:20:21 cph Exp $
+$Id: graphics.scm,v 1.16 1996/03/23 06:43:31 cph Exp $
 
-Copyright (c) 1989-95 Massachusetts Institute of Technology
+Copyright (c) 1989-96 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -223,8 +223,8 @@ MIT in each case. |#
                   (and error?
                        (error "Graphics type unknown:" object)))))))))
 
-(define graphics-type-available?
-  graphics-type)
+(define (graphics-type-available? type)
+  (graphics-type type #f))
 
 (define (enumerate-graphics-types)
   (list-transform-positive graphics-types graphics-device-type/available?))