0-sized window =/=> 0-sized backing bitmap

This commit is contained in:
Matthew Flatt 2016-08-13 13:24:43 -06:00
parent d0376db70a
commit c700e32c17

View File

@ -124,7 +124,7 @@
(let ([w (box 0)]
[h (box 0)])
(get-backing-size w h)
(let ([bm (get-backing-bitmap (lambda (w h) (make-backing-bitmap w h)) (unbox w) (unbox h))])
(let ([bm (get-backing-bitmap (lambda (w h) (make-backing-bitmap (max 1 w) (max 1 h))) (unbox w) (unbox h))])
(internal-set-bitmap bm #t))
(let ([cr (super get-cr)])
(set! retained-cr cr)