ui.backend.cocoa.views: handle windowDidChangeBackingProperties event.

db4
John Benediktsson 2013-04-21 19:40:57 -07:00
parent 124a9a3417
commit 5512294075
1 changed files with 11 additions and 0 deletions

View File

@ -390,6 +390,17 @@ CLASS: FactorWindowDelegate < NSObject
notification -> object -> contentView
[ window ungraft ] [ unregister-window ] bi
]
METHOD: void windowDidChangeBackingProperties: id notification
[
notification -> object dup SEL: backingScaleFactor
-> respondsToSelector: c-bool> [
SEND: backingScaleFactor execute( x x -- x )
[ gl-scale-factor set-global ]
[ 1.0 > retina? set-global ] bi
] [ drop ] if
]
]
: install-window-delegate ( window -- )