ui.backend.cocoa.views: Use ?-> to avoid objc lookup errors if backingScaleFactor selector does not exist.

char-rename
Doug Coleman 2017-06-01 12:27:33 -05:00
parent d838f95370
commit 0ca1b4656f
1 changed files with 1 additions and 3 deletions

View File

@ -438,9 +438,7 @@ CLASS: FactorWindowDelegate < NSObject
notification -> object dup SEL: backingScaleFactor notification -> object dup SEL: backingScaleFactor
-> respondsToSelector: c-bool> [ -> respondsToSelector: c-bool> [
{ double { id SEL } } ?-> backingScaleFactor
SEL: backingScaleFactor
double f "objc_msgSend" { id SEL } f alien-invoke
[ [ 1.0 > ] keep f ? gl-scale-factor set-global ] [ [ 1.0 > ] keep f ? gl-scale-factor set-global ]
[ 1.0 > retina? set-global ] bi [ 1.0 > retina? set-global ] bi