fix `read-bitmap' to accept an input port

Closes PR 11555
This commit is contained in:
Matthew Flatt 2010-12-19 06:24:58 -07:00
parent 3518e027fb
commit dd8215d0dd

View File

@ -767,7 +767,7 @@
[any? [alpha? #t]])
(make-object bitmap% w h #f alpha?))
(define/top (read-bitmap [path-string? filename]
(define/top (read-bitmap [(make-alts path-string? input-port?) filename]
[bitmap-file-kind-symbol? [kind 'unknown/alpha]]
[(make-or-false color%) [bg-color #f]]
[any? [complain-on-failure? #t]])