mirror of https://github.com/vitalif/phantomjs
Fix warning of obsolete userSpaceScaleFactor on OS X 10.9 (Mavericks).
Related upstream bug: https://bugreports.qt-project.org/browse/QTBUG-28574 Issue #1162 https://github.com/ariya/phantomjs/issues/116121.x
parent
b67866b612
commit
b70ff8929c
|
@ -78,11 +78,7 @@ NSScreen *screenForWindow(NSWindow *window)
|
|||
|
||||
static CGFloat windowScaleFactor(NSWindow *window)
|
||||
{
|
||||
#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
|
||||
return [window backingScaleFactor];
|
||||
#else
|
||||
return [window userSpaceScaleFactor];
|
||||
#endif
|
||||
}
|
||||
|
||||
FloatRect toUserSpace(const NSRect& rect, NSWindow *destination)
|
||||
|
|
Loading…
Reference in New Issue