fix yet another refresh problem
original commit: 6d8bb2cab4d9d0a4ec24cbf885c41e13c9771570
This commit is contained in:
parent
f37b3304f2
commit
d93d8e5dfc
|
@ -223,6 +223,7 @@
|
|||
(when pq (set-box! pq #f)))
|
||||
(set! paint-queued #f)
|
||||
(when (or (not b) (is-shown-to-root?))
|
||||
(send dc suspend-flush)
|
||||
(send dc ensure-ready)
|
||||
(send dc erase) ; start with a clean slate
|
||||
(let ([bg (get-canvas-background)])
|
||||
|
@ -231,7 +232,6 @@
|
|||
(send dc set-background bg)
|
||||
(send dc clear)
|
||||
(send dc set-background old-bg))))
|
||||
(send dc suspend-flush)
|
||||
(on-paint)
|
||||
(send dc resume-flush)
|
||||
(queue-backing-flush)))
|
||||
|
|
|
@ -349,6 +349,7 @@
|
|||
(lambda ()
|
||||
(set! paint-queued? #f)
|
||||
(set! now-drawing? #t)
|
||||
(send dc suspend-flush)
|
||||
(send dc ensure-ready)
|
||||
(send dc erase) ; clean slate
|
||||
(let ([bg (get-canvas-background)])
|
||||
|
@ -357,7 +358,6 @@
|
|||
(send dc set-background bg)
|
||||
(send dc clear)
|
||||
(send dc set-background old-bg))))
|
||||
(send dc suspend-flush)
|
||||
(on-paint)
|
||||
(send dc resume-flush)
|
||||
(set! now-drawing? #f)
|
||||
|
|
Loading…
Reference in New Issue
Block a user