2x banner images!

This commit is contained in:
comex
2013-09-25 03:05:36 -04:00
parent 0787019cbe
commit 18abc33306
14 changed files with 112 additions and 72 deletions

View File

@ -9,6 +9,10 @@
#include "WxUtils.h"
#ifdef __APPLE__
#import <AppKit/AppKit.h>
#endif
namespace WxUtils {
// Launch a file according to its mime type
@ -40,6 +44,18 @@ void Explore(const char *path)
}
}
double GetCurrentBitmapLogicalScale()
{
#ifdef __APPLE__
// wx doesn't expose this itself, unfortunately.
if ([[NSScreen mainScreen] respondsToSelector:@selector(backingScaleFactor)])
{
return [[NSScreen mainScreen] backingScaleFactor];
}
#endif
return 1.0;
}
} // namespace
std::string WxStrToStr(const wxString& str)