Fix building wxMSW GDI+ graphics code in non-Unicode build
Use wc_str() with GDI+ function which always takes wide strings, even in non-Unicode build. Closes #18172.
This commit is contained in:
@@ -118,6 +118,7 @@ wxMSW:
|
|||||||
- Fix positioning windows at positions >= SHORT_MAX (Cătălin Răceanu).
|
- Fix positioning windows at positions >= SHORT_MAX (Cătălin Răceanu).
|
||||||
- Honour alignment flags for multiline buttons using custom colours too.
|
- Honour alignment flags for multiline buttons using custom colours too.
|
||||||
- Support MSVC auto-linking when using monolithic build too (PB).
|
- Support MSVC auto-linking when using monolithic build too (PB).
|
||||||
|
- Fix build in ANSI (non-Unicode) mode.
|
||||||
|
|
||||||
wxOSX:
|
wxOSX:
|
||||||
|
|
||||||
|
@@ -2335,7 +2335,7 @@ void wxGDIPlusRenderer::Load()
|
|||||||
for ( size_t i = 0 ; i < n; i++ )
|
for ( size_t i = 0 ; i < n; i++ )
|
||||||
{
|
{
|
||||||
const wxString& fname = privateFonts[i];
|
const wxString& fname = privateFonts[i];
|
||||||
gs_privateFonts->AddFontFile(fname.t_str());
|
gs_privateFonts->AddFontFile(fname.wc_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
gs_pFontFamily = new Gdiplus::FontFamily[n];
|
gs_pFontFamily = new Gdiplus::FontFamily[n];
|
||||||
|
Reference in New Issue
Block a user