Make has-alpha-channel? return a boolean.
This method used to violate the documented contract.
This commit is contained in:
parent
2e1d59f7b2
commit
5340309080
|
@ -265,7 +265,7 @@
|
|||
(def/public (get-height) (max 1 height))
|
||||
(def/public (get-depth) (if b&w? 1 32))
|
||||
(def/public (is-color?) (not b&w?))
|
||||
(def/public (has-alpha-channel?) alpha-channel?)
|
||||
(def/public (has-alpha-channel?) (and alpha-channel? #t))
|
||||
|
||||
(define/private (check-alternate who)
|
||||
(when alt?
|
||||
|
|
Loading…
Reference in New Issue
Block a user