Unicode-related compile fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2008-09-24 23:44:34 +00:00
parent 5879b22eeb
commit e6ba38871f
2 changed files with 4 additions and 2 deletions

View File

@@ -466,7 +466,9 @@ void wxFontRefData::MacFindFont()
float floatnumber; float floatnumber;
CFNumberGetValue( number, kCFNumberFloatType, &floatnumber ); CFNumberGetValue( number, kCFNumberFloatType, &floatnumber );
{ {
printf( wxString::Format( "font %s expected %d but got %d traits, %f angle \n" , m_faceName.c_str(), traits, received, angle ) ); wxString msg = wxString::Format( "font %s expected %d but got %d traits, %f angle \n" ,
m_faceName.c_str(), traits, received, angle );
printf( msg.c_str() );
} }
CFShow( dict ); CFShow( dict );
CFRelease( dict ); CFRelease( dict );

View File

@@ -167,7 +167,7 @@ bool wxGLCanvasBase::IsExtensionSupported(const char *extension)
WXGLDestroyPixelFormat(fmt); WXGLDestroyPixelFormat(fmt);
WXGLDestroyContext(ctx); WXGLDestroyContext(ctx);
return IsExtensionInList(extensions, extension); return IsExtensionInList(extensions.ToAscii(), extension);
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------