added mlte initialization

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-05-08 23:23:43 +00:00
parent 1b2b1638a2
commit f8eebb9543
2 changed files with 24 additions and 28 deletions

View File

@ -21,9 +21,6 @@
// windows manager, control manager, navigation services etc. are
// present
#define wxUSE_MLTE 0
static bool sUMAHasAppearance = false ;
static long sUMAAppearanceVersion = 0 ;
static bool sUMAHasAquaLayout = false ;
@ -51,9 +48,8 @@ void UMACleanupToolbox()
{
NavUnload() ;
}
#if wxUSE_MLTE
TXNTerminateTextension( ) ;
#endif
if ( TXNTerminateTextension != (void*) kUnresolvedCFragSymbolAddress )
TXNTerminateTextension( ) ;
}
void UMAInitToolbox( UInt16 inMoreMastersCalls )
{
@ -108,14 +104,16 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
NavLoad() ;
}
#if wxUSE_MLTE
TXNMacOSPreferredFontDescription defaults;
defaults.fontID = kFontIDGeneva ;
defaults.pointSize = (10 << 16) ;
defaults.fontStyle = kTXNDefaultFontStyle;
defaults.encoding = kTXNSystemDefaultEncoding;
TXNInitTextension(&defaults, 1, (kTXNAlwaysUseQuickDrawTextMask | kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
#endif
if ( TXNInitTextension != (void*) kUnresolvedCFragSymbolAddress )
{
TXNMacOSPreferredFontDescription defaults;
defaults.fontID = kFontIDGeneva ;
defaults.pointSize = (10 << 16) ;
defaults.fontStyle = kTXNDefaultFontStyle;
defaults.encoding = kTXNSystemDefaultEncoding;
TXNInitTextension(&defaults, 1, (kTXNAlwaysUseQuickDrawTextMask | kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
}
long menuMgrAttr ;
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )

View File

@ -21,9 +21,6 @@
// windows manager, control manager, navigation services etc. are
// present
#define wxUSE_MLTE 0
static bool sUMAHasAppearance = false ;
static long sUMAAppearanceVersion = 0 ;
static bool sUMAHasAquaLayout = false ;
@ -51,9 +48,8 @@ void UMACleanupToolbox()
{
NavUnload() ;
}
#if wxUSE_MLTE
TXNTerminateTextension( ) ;
#endif
if ( TXNTerminateTextension != (void*) kUnresolvedCFragSymbolAddress )
TXNTerminateTextension( ) ;
}
void UMAInitToolbox( UInt16 inMoreMastersCalls )
{
@ -108,14 +104,16 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
NavLoad() ;
}
#if wxUSE_MLTE
TXNMacOSPreferredFontDescription defaults;
defaults.fontID = kFontIDGeneva ;
defaults.pointSize = (10 << 16) ;
defaults.fontStyle = kTXNDefaultFontStyle;
defaults.encoding = kTXNSystemDefaultEncoding;
TXNInitTextension(&defaults, 1, (kTXNAlwaysUseQuickDrawTextMask | kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
#endif
if ( TXNInitTextension != (void*) kUnresolvedCFragSymbolAddress )
{
TXNMacOSPreferredFontDescription defaults;
defaults.fontID = kFontIDGeneva ;
defaults.pointSize = (10 << 16) ;
defaults.fontStyle = kTXNDefaultFontStyle;
defaults.encoding = kTXNSystemDefaultEncoding;
TXNInitTextension(&defaults, 1, (kTXNAlwaysUseQuickDrawTextMask | kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
}
long menuMgrAttr ;
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )