ui.backend.cocoa.views: Use ?-> to avoid objc lookup errors if backingScaleFactor selector does not exist.
parent
d838f95370
commit
0ca1b4656f
|
@ -438,9 +438,7 @@ CLASS: FactorWindowDelegate < NSObject
|
|||
|
||||
notification -> object dup SEL: backingScaleFactor
|
||||
-> respondsToSelector: c-bool> [
|
||||
|
||||
SEL: backingScaleFactor
|
||||
double f "objc_msgSend" { id SEL } f alien-invoke
|
||||
{ double { id SEL } } ?-> backingScaleFactor
|
||||
|
||||
[ [ 1.0 > ] keep f ? gl-scale-factor set-global ]
|
||||
[ 1.0 > retina? set-global ] bi
|
||||
|
|
Loading…
Reference in New Issue