notifying children of absolute position changes, add version checks instead of symbol checks, so that CW builds do not complain on 10.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1811,6 +1811,9 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
if ( vis )
|
if ( vis )
|
||||||
m_peer->SetVisibility( true , true ) ;
|
m_peer->SetVisibility( true , true ) ;
|
||||||
|
|
||||||
|
if ( doMove )
|
||||||
|
wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
|
|
||||||
MacInvalidateBorders() ;
|
MacInvalidateBorders() ;
|
||||||
|
|
||||||
MacRepositionScrollBars() ;
|
MacRepositionScrollBars() ;
|
||||||
@@ -2401,7 +2404,7 @@ void wxWindowMac::MacPaintBorders( int leftOrigin , int rightOrigin )
|
|||||||
InsetRect( &rect, -MacGetLeftBorderSize() , -MacGetTopBorderSize() ) ;
|
InsetRect( &rect, -MacGetLeftBorderSize() , -MacGetTopBorderSize() ) ;
|
||||||
|
|
||||||
#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
||||||
if ( HIThemeDrawFrame != 0)
|
if ( UMAGetSystemVersion() >= 0x1030 )
|
||||||
{
|
{
|
||||||
Rect srect = rect ;
|
Rect srect = rect ;
|
||||||
HIThemeFrameDrawInfo info ;
|
HIThemeFrameDrawInfo info ;
|
||||||
@@ -3069,7 +3072,7 @@ bool wxWindowMac::MacDoRedraw( WXHRGN updatergnr , long time )
|
|||||||
if ( !child->GetEventHandler()->ProcessEvent( eventNc ) )
|
if ( !child->GetEventHandler()->ProcessEvent( eventNc ) )
|
||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
||||||
if ( HIThemeDrawFrame != 0)
|
if ( UMAGetSystemVersion() >= 0x1030 )
|
||||||
{
|
{
|
||||||
child->MacPaintBorders(0,0) ;
|
child->MacPaintBorders(0,0) ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user