racket/draw: avoid an internal error on a bad bitmap
This commit is contained in:
parent
c359f7ac29
commit
864d165c24
|
@ -903,7 +903,8 @@
|
|||
|
||||
(define/public (prep-alpha width height)
|
||||
(when (and (not b&w?)
|
||||
(not alpha-channel?))
|
||||
(not alpha-channel?)
|
||||
s)
|
||||
(unless alpha-s-up-to-date?
|
||||
(unless alpha-s
|
||||
(set! alpha-s (cairo_image_surface_create CAIRO_FORMAT_ARGB32
|
||||
|
|
Loading…
Reference in New Issue
Block a user