racket/gui mac os x: fix compatible-bitmap scale on slow path

original commit: 0a8b4f573b02777b7605498b9071f63ac23e477f
This commit is contained in:
Matthew Flatt 2014-03-30 11:12:08 -06:00
parent b4decca6da
commit 384eb0ff1e

View File

@ -152,6 +152,7 @@
(define layer-bitmap%
(class quartz-bitmap%
(init w h win trans? flipped?)
(inherit get-backing-scale)
(define layer (make-layer win w h))
(define layer-w w)
@ -236,7 +237,7 @@
(let ([bm (make-object quartz-bitmap%
layer-w layer-h
is-trans?
1.0)])
(get-backing-scale))])
(define dc (send bm make-dc))
;; For some reason, we must touch the DC
;; to make transarent work right. It works