added system version getter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
void UMAInitToolbox( UInt16 inMoreMastersCalls) ;
|
||||
void UMACleanupToolbox() ;
|
||||
long UMAGetSystemVersion() ;
|
||||
bool UMAHasAppearance() ;
|
||||
long UMAGetAppearanceVersion() ;
|
||||
bool UMAHasWindowManager() ;
|
||||
|
@@ -23,12 +23,14 @@
|
||||
|
||||
static bool sUMAHasAppearance = false ;
|
||||
static long sUMAAppearanceVersion = 0 ;
|
||||
static long sUMASystemVersion = 0 ;
|
||||
static bool sUMAHasAquaLayout = false ;
|
||||
static bool sUMASystemInitialized = false ;
|
||||
|
||||
extern int gAGABackgroundColor ;
|
||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||
long UMAGetSystemVersion() { return sUMASystemVersion ; }
|
||||
|
||||
static bool sUMAHasWindowManager = false ;
|
||||
static long sUMAWindowManagerAttr = 0 ;
|
||||
@@ -71,6 +73,9 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
InitCursor();
|
||||
#endif
|
||||
|
||||
if ( Gestalt(gestaltSystemVersion, &sUMASystemVersion) != noErr)
|
||||
sUMASystemVersion = 0x0000 ;
|
||||
|
||||
long theAppearance ;
|
||||
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
||||
{
|
||||
|
@@ -23,12 +23,14 @@
|
||||
|
||||
static bool sUMAHasAppearance = false ;
|
||||
static long sUMAAppearanceVersion = 0 ;
|
||||
static long sUMASystemVersion = 0 ;
|
||||
static bool sUMAHasAquaLayout = false ;
|
||||
static bool sUMASystemInitialized = false ;
|
||||
|
||||
extern int gAGABackgroundColor ;
|
||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||
long UMAGetSystemVersion() { return sUMASystemVersion ; }
|
||||
|
||||
static bool sUMAHasWindowManager = false ;
|
||||
static long sUMAWindowManagerAttr = 0 ;
|
||||
@@ -71,6 +73,9 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
InitCursor();
|
||||
#endif
|
||||
|
||||
if ( Gestalt(gestaltSystemVersion, &sUMASystemVersion) != noErr)
|
||||
sUMASystemVersion = 0x0000 ;
|
||||
|
||||
long theAppearance ;
|
||||
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
||||
{
|
||||
|
Reference in New Issue
Block a user