X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ab8b6ddfa26fbabeadad36966a21a42fe649b1..75d9e502238df95fa53c0030b1fac0d4f43e4025:/src/generic/dcpsg.cpp diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index a157c1c46c..4f7be92ace 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -2228,13 +2228,25 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string, } // print postscript datas via required method (file, stream) -void wxPostScriptDC::DoPsPrintfFormat(const wxString& fmt, ...) +#if !wxUSE_UTF8_LOCALE_ONLY +void wxPostScriptDC::DoPsPrintfFormatWchar(const wxChar *fmt, ...) { va_list argptr; va_start(argptr, fmt); PsPrint( wxString::FormatV( fmt, argptr ) ); } +#endif // !wxUSE_UTF8_LOCALE_ONLY + +#if wxUSE_UNICODE_UTF8 +void wxPostScriptDC::DoPsPrintfFormatUtf8(const char *fmt, ...) +{ + va_list argptr; + va_start(argptr, fmt); + + PsPrint( wxString::FormatV( fmt, argptr ) ); +} +#endif // wxUSE_UNICODE_UTF8 void wxPostScriptDC::PsPrint( const wxString& str ) {