X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..c81c6d5400f732e89d41a7a3ab0eb824761ac52c:/src/msw/fontdlg.cpp diff --git a/src/msw/fontdlg.cpp b/src/msw/fontdlg.cpp index ee3382628c..fefc22adb6 100644 --- a/src/msw/fontdlg.cpp +++ b/src/msw/fontdlg.cpp @@ -45,8 +45,8 @@ #include "wx/cmndata.h" #include "wx/log.h" +#include "wx/math.h" -#include #include #include @@ -66,7 +66,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog) int wxFontDialog::ShowModal() { - DWORD flags = CF_SCREENFONTS | CF_NOSIMULATIONS; + // It should be OK to always use GDI simulations + DWORD flags = CF_SCREENFONTS /* | CF_NOSIMULATIONS */ ; LOGFONT logFont; @@ -87,20 +88,13 @@ int wxFontDialog::ShowModal() if ( m_fontData.m_fontColour.Ok() ) { chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.m_fontColour); - - // need this for the colour to be taken into account - flags |= CF_EFFECTS; } // CF_ANSIONLY flag is obsolete for Win32 if ( !m_fontData.GetAllowSymbols() ) { -#ifdef __WIN16__ - flags |= CF_ANSIONLY; -#else // Win32 flags |= CF_SELECTSCRIPT; logFont.lfCharSet = ANSI_CHARSET; -#endif // Win16/32 } if ( m_fontData.GetEnableEffects() )