diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index b51184f701..47e07ba683 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -150,11 +150,23 @@ bool wxDoLaunchDefaultBrowser(const wxLaunchBrowserParams& params) void wxDisplaySizeMM(int *width, int *height) { +#if wxOSX_USE_IPHONE + wxDisplaySize(width, height); + // on mac 72 is fixed (at least now;-) + double cvPt2Mm = 25.4 / 72; + + if (width != NULL) + *width = int( *width * cvPt2Mm ); + + if (height != NULL) + *height = int( *height * cvPt2Mm ); +#else CGSize size = CGDisplayScreenSize(CGMainDisplayID()); if ( width ) *width = (int)size.width ; if ( height ) *height = (int)size.height; +#endif }