support getting device resolution on all osx ports

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-06-28 13:24:27 +00:00
parent e788ceb8fa
commit bc7a3ceeba
4 changed files with 31 additions and 5 deletions

View File

@@ -1857,13 +1857,11 @@ bool wxBundleResourceHandler::LoadFile(wxBitmap *bitmap,
wxCFRef<CFURLRef> imageURL;
#if wxOSX_USE_COCOA
if ( wxOSXGetMainScreenContentScaleFactor() > 1.9 )
{
imageURL.reset(CFBundleCopyResourceURL(CFBundleGetMainBundle(), resname2x, restype, NULL));
scale = 2.0;
}
#endif
if ( imageURL.get() == NULL )
{