racket/draw: avoid an internal error on a bad bitmap

This commit is contained in:
Matthew Flatt 2014-08-13 09:14:04 +01:00
parent c359f7ac29
commit 864d165c24

View File

@ -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