last world draw shouldn't restore old draw; Closes PR 11994
This commit is contained in:
parent
52825c68a1
commit
b00b2e318a
|
@ -251,10 +251,8 @@
|
||||||
(begin
|
(begin
|
||||||
(define/public (name arg ...)
|
(define/public (name arg ...)
|
||||||
(define (last-draw)
|
(define (last-draw)
|
||||||
(define draw0 draw)
|
(set! draw last-picture)
|
||||||
(dynamic-wind (lambda () (set! draw last-picture))
|
(pdraw))
|
||||||
(lambda () (pdraw))
|
|
||||||
(lambda () (set! draw draw0))))
|
|
||||||
(queue-callback
|
(queue-callback
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-handlers ([exn? (handler #t)])
|
(with-handlers ([exn? (handler #t)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user