corrected GetCharWidth and implemented MacSuperChangedPosition for toolbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1276,10 +1276,9 @@ wxCoord wxDC::GetCharWidth(void) const
|
||||
|
||||
MacInstallFont() ;
|
||||
|
||||
FontInfo fi ;
|
||||
::GetFontInfo( &fi ) ;
|
||||
int width = ::TextWidth( "n" , 0 , 1 ) ;
|
||||
|
||||
return YDEV2LOGREL((fi.descent + fi.ascent) / 2) ;
|
||||
return YDEV2LOGREL(width) ;
|
||||
}
|
||||
|
||||
wxCoord wxDC::GetCharHeight(void) const
|
||||
|
||||
Reference in New Issue
Block a user