string conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,13 +103,9 @@ void wxFontRefData::MacFindFont()
|
|||||||
m_macFontNum = ::GetAppFont() ;
|
m_macFontNum = ::GetAppFont() ;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if TARGET_CARBON
|
Str255 fontname ;
|
||||||
c2pstrcpy( (StringPtr) wxBuffer, m_faceName ) ;
|
wxMacStringToPascal( m_faceName , fontname ) ;
|
||||||
#else
|
::GetFNum( fontname, &m_macFontNum);
|
||||||
strcpy( (char *) wxBuffer, m_faceName ) ;
|
|
||||||
c2pstr( (char *) wxBuffer ) ;
|
|
||||||
#endif
|
|
||||||
::GetFNum( (StringPtr) wxBuffer, &m_macFontNum);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -103,13 +103,9 @@ void wxFontRefData::MacFindFont()
|
|||||||
m_macFontNum = ::GetAppFont() ;
|
m_macFontNum = ::GetAppFont() ;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if TARGET_CARBON
|
Str255 fontname ;
|
||||||
c2pstrcpy( (StringPtr) wxBuffer, m_faceName ) ;
|
wxMacStringToPascal( m_faceName , fontname ) ;
|
||||||
#else
|
::GetFNum( fontname, &m_macFontNum);
|
||||||
strcpy( (char *) wxBuffer, m_faceName ) ;
|
|
||||||
c2pstr( (char *) wxBuffer ) ;
|
|
||||||
#endif
|
|
||||||
::GetFNum( (StringPtr) wxBuffer, &m_macFontNum);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user