projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
overwrote with src\wxBase.dsp
[wxWidgets.git]
/
src
/
mac
/
carbon
/
fontenum.cpp
diff --git
a/src/mac/carbon/fontenum.cpp
b/src/mac/carbon/fontenum.cpp
index f06fd5baaa524ece3e605cfe10e7e24d3d36183f..14491d79e93e542b49aea6b9c4c9a29cf53b3083 100644
(file)
--- a/
src/mac/carbon/fontenum.cpp
+++ b/
src/mac/carbon/fontenum.cpp
@@
-102,7
+102,8
@@
bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
void wxFontEnumeratorHelper::DoEnumerate()
{
MenuHandle menu ;
void wxFontEnumeratorHelper::DoEnumerate()
{
MenuHandle menu ;
- Str255 name ;
+ Str255 p_name ;
+ char c_name[256] ;
short lines ;
menu = NewMenu( 32000 , "\pFont" ) ;
short lines ;
menu = NewMenu( 32000 , "\pFont" ) ;
@@
-111,11
+112,16
@@
void wxFontEnumeratorHelper::DoEnumerate()
for ( int i = 1 ; i < lines+1 ; i ++ )
{
for ( int i = 1 ; i < lines+1 ; i ++ )
{
- GetMenuItemText( menu , i , name ) ;
- p2cstr( name ) ;
- /*
-
- if ( m_fixedOnly )
+ GetMenuItemText( menu , i , p_name ) ;
+#if TARGET_CARBON
+ p2cstrcpy( c_name, p_name ) ;
+#else
+ p2cstr( p_name ) ;
+ strcpy( c_name, (char *)p_name ) ;
+#endif
+ /*
+
+ if ( m_fixedOnly )
{
// check that it's a fixed pitch font (there is *no* error here, the
// flag name is misleading!)
{
// check that it's a fixed pitch font (there is *no* error here, the
// flag name is misleading!)
@@
-136,7
+142,7
@@
void wxFontEnumeratorHelper::DoEnumerate()
}
*/
}
*/
- m_fontEnum->OnFacename( name ) ;
+ m_fontEnum->OnFacename(
c_
name ) ;
}
DisposeMenu( menu ) ;
}
}
DisposeMenu( menu ) ;
}