]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/bitmap.cpp
support getting device resolution on all osx ports
[wxWidgets.git] / src / osx / core / bitmap.cpp
index 4da8104bf9f03c2be14ba08b44ebdae0810f21ae..ac0804d1f1a19f9a509577998178f46cb655a859 100644 (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 )
     {