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/11612
1.x
Ariya Hidayat 2014-01-03 18:39:23 -08:00
parent b67866b612
commit b70ff8929c
1 changed files with 0 additions and 4 deletions

View File

@ -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)