X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65f3f920ba3601249efdd84efc1a9299d80d1b4f..a0477b5a2b864a164a1012b3cfea03dc42e869ba:/src/os2/dc.cpp diff --git a/src/os2/dc.cpp b/src/os2/dc.cpp index 1a65b1804c..11d9169319 100644 --- a/src/os2/dc.cpp +++ b/src/os2/dc.cpp @@ -1753,12 +1753,10 @@ void wxDC::DrawAnyText( const wxString& rsText, vPtlStart.y = vY; } - PCH pzStr = rsText.char_str(); - ::GpiMove(m_hPS, &vPtlStart); lHits = ::GpiCharString( m_hPS ,rsText.length() - ,pzStr + ,rsText.wx_str() ); if (lHits != GPI_OK) { @@ -2178,7 +2176,7 @@ void wxDC::DoGetTextExtent( // bRc = ::GpiQueryTextBox( m_hPS ,l - ,rsString.char_str() + ,(char *)rsString.wx_str() ,TXTBOX_COUNT // return maximum information ,avPoint // array of coordinates points );