Remove redundant tests for __WIN32__ in wxMSW code.
This is always defined, Win16 is not supported since ages and Win64 defines both __WIN32__ and __WIN64__.
This commit is contained in:
@@ -156,14 +156,14 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
m_facename.empty() ? NULL : wxMSW_CONV_LPCTSTR(m_facename),
|
||||
(FONTENUMPROC)wxFontEnumeratorProc,
|
||||
(LPARAM)this) ;
|
||||
#else // __WIN32__
|
||||
#else // !__WXWINCE__
|
||||
LOGFONT lf;
|
||||
lf.lfCharSet = (BYTE)m_charset;
|
||||
wxStrlcpy(lf.lfFaceName, m_facename.c_str(), WXSIZEOF(lf.lfFaceName));
|
||||
lf.lfPitchAndFamily = 0;
|
||||
::EnumFontFamiliesEx(hDC, &lf, (FONTENUMPROC)wxFontEnumeratorProc,
|
||||
(LPARAM)this, 0 /* reserved */) ;
|
||||
#endif // Win32/CE
|
||||
#endif // WinCE/!WinCE
|
||||
|
||||
::ReleaseDC(NULL, hDC);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user