X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0837533260da569ae2e7319effcdfb3526d40bcc..3dd4386160b8f6d28ecc4ad2ca308c437721a41f:/samples/dialogs/dialogs.h diff --git a/samples/dialogs/dialogs.h b/samples/dialogs/dialogs.h index 7517a20c43..6f225aa991 100644 --- a/samples/dialogs/dialogs.h +++ b/samples/dialogs/dialogs.h @@ -46,6 +46,12 @@ of MSW, MAC and OS2 #define USE_WXMAC 0 #endif +#if defined(__WXMAC_OSX__) && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2) && USE_NATIVE_FONT_DIALOG_FOR_MACOSX + #define USE_WXMACFONTDLG 1 +#else + #define USE_WXMACFONTDLG 0 +#endif + #ifdef __WXGTK__ #define USE_WXGTK 1 #else @@ -67,7 +73,7 @@ of MSW, MAC and OS2 #define USE_FILEDLG_GENERIC \ ((USE_WXMSW || USE_WXMAC || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FILEDLG) #define USE_FONTDLG_GENERIC \ - ((USE_WXMSW || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG) + ((USE_WXMSW || USE_WXMACFONTDLG ||USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG) // Turn USE_MODAL_PRESENTATION to 0 if there is any reason for not presenting difference