fix problem with @2x bitmaps on Mac OS X 10.5
This commit is contained in:
parent
0a8b4f573b
commit
1273d0fbb3
|
@ -67,7 +67,11 @@
|
|||
(define (bitmap->image bm)
|
||||
(define w (send bm get-width))
|
||||
(define h (send bm get-height))
|
||||
(define s (send bm get-backing-scale))
|
||||
(define s (if (version-10.6-or-later?)
|
||||
(send bm get-backing-scale)
|
||||
;; In 10.5, `NSImage setSize:` clips instead of
|
||||
;; scaling, so just use scale of 1:
|
||||
1))
|
||||
(cond
|
||||
[(= s 1) (bitmap->image* bm w h w h)]
|
||||
[else
|
||||
|
|
Loading…
Reference in New Issue
Block a user