Skip to content

Commit ecac746

Browse files
committed
Mac: repair for OS X 10.6 and getting system colors
Related to racket/racket#5386
1 parent 1e5053b commit ecac746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui-lib/mred/private/wx/cocoa/procs.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@
198198
#:keep keep))
199199
(void/reference-sink keep)
200200
ans]
201-
[(version-10.6-or-later?)
201+
[(version-10.7-or-later?)
202202
(tell (get) colorUsingColorSpace: (tell NSColorSpace deviceRGBColorSpace))]
203203
[else
204-
;; In 10.5, `colorUsingColorSpace:` with (tell NSColorSpace deviceRGBColorSpace)`
204+
;; In 10.6 and earlier, `colorUsingColorSpace:` with (tell NSColorSpace deviceRGBColorSpace)`
205205
;; doesn't produce a color with RGB components
206206
(tell (get) colorUsingColorSpaceName: #:type _NSString "NSDeviceRGBColorSpace")])))
207207
(define (as-color v)

0 commit comments

Comments
 (0)