X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2809785e15e15fbb474140567c6f60452cd9a116..bcd882b35e56a43f894551a43bbc4937034b7a0b:/wxPython/src/helpers.cpp diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index b5ad3f8f6b..1a23c8f8d6 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -97,6 +97,7 @@ PyObject* wxPyPtrTypeMap = NULL; // This gets run when the DLL is loaded. We just need to save a handle. //---------------------------------------------------------------------- +extern "C" BOOL WINAPI DllMain( HINSTANCE hinstDLL, // handle to DLL module DWORD fdwReason, // reason for calling function @@ -439,6 +440,8 @@ void wxPyApp::_BootstrapApp() setlocale(LC_NUMERIC, "C"); #endif + wxSystemOptions::SetOption(wxT("mac.textcontrol-use-mlte"), 1); + // The stock objects were all NULL when they were loaded into // SWIG generated proxies, so re-init those now... wxPy_ReinitStockObjects(3);