WxUtils: Get rid of GetCurrentBitmapLogicalScale

wx now provides the means to query this.
This commit is contained in:
Lioncash
2014-11-17 20:11:34 -05:00
parent c0291d5b88
commit 3c23a9afc9
3 changed files with 3 additions and 15 deletions

View File

@ -58,18 +58,6 @@ void ShowErrorDialog(const wxString& error_msg)
wxMessageBox(error_msg, _("Error"), wxOK | wxICON_ERROR);
}
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;
}
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length)
{
wxMemoryInputStream is(data, length);