racket/gui cocoa: fix atomicity of refresh

Atomicity was accidentally turned off in ca0418d47d.

For whatever reason, this bug seems to cause lots of trouble with
32-bit Mac OS X and not as much for 64-bit Mac OS X.
This commit is contained in:
Matthew Flatt 2014-01-26 18:35:30 -07:00
parent bc018585ac
commit 13b1d0733a

View File

@ -22,8 +22,8 @@
(define-objc-class FrameView NSView (define-objc-class FrameView NSView
[] []
(- #:async-apply (box (void)) (-a #:async-apply (box (void))
_void (drawRect: [_NSRect r]) _void (drawRect: [_NSRect r])
(let ([ctx (tell NSGraphicsContext currentContext)]) (let ([ctx (tell NSGraphicsContext currentContext)])
(tellv ctx saveGraphicsState) (tellv ctx saveGraphicsState)
(let ([cg (tell #:type _CGContextRef ctx graphicsPort)] (let ([cg (tell #:type _CGContextRef ctx graphicsPort)]