support retina display

This commit is contained in:
Grant Paul
2012-12-23 21:33:52 +13:00
committed by Matthew Parlane
parent e3eebdf591
commit 3aa9901618
7 changed files with 107 additions and 34 deletions

View File

@ -252,6 +252,14 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
wxFlexGridSizer* const szr_display = new wxFlexGridSizer(2, 5, 5);
{
#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
NSView *view = (NSView *) parent->GetHandle();
NSWindow *window = [view window];
if (![window respondsToSelector:@selector(toggleFullScreen:)])
#endif
// display resolution
{
wxArrayString res_list = GetListOfResolutions();