added debugging code for redrawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -41,6 +41,11 @@
|
|||||||
#include "wx/mac/aga.h"
|
#include "wx/mac/aga.h"
|
||||||
#include "wx/tooltip.h"
|
#include "wx/tooltip.h"
|
||||||
|
|
||||||
|
#define wxMAC_DEBUG_REDRAW 0
|
||||||
|
#ifndef wxMAC_DEBUG_REDRAW
|
||||||
|
#define wxMAC_DEBUG_REDRAW 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// globals
|
// globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -689,7 +694,7 @@ void wxTopLevelWindowMac::MacInvalidate( const Rect * rect, bool eraseBackground
|
|||||||
}
|
}
|
||||||
InvalWindowRect( m_macWindow , rect ) ;
|
InvalWindowRect( m_macWindow , rect ) ;
|
||||||
// turn this on to debug the refreshing cycle
|
// turn this on to debug the refreshing cycle
|
||||||
#if 0
|
#if wxMAC_DEBUG_REDRAW
|
||||||
PaintRect( rect ) ;
|
PaintRect( rect ) ;
|
||||||
#endif
|
#endif
|
||||||
SetPort( formerPort ) ;
|
SetPort( formerPort ) ;
|
||||||
|
@@ -41,6 +41,11 @@
|
|||||||
#include "wx/mac/aga.h"
|
#include "wx/mac/aga.h"
|
||||||
#include "wx/tooltip.h"
|
#include "wx/tooltip.h"
|
||||||
|
|
||||||
|
#define wxMAC_DEBUG_REDRAW 0
|
||||||
|
#ifndef wxMAC_DEBUG_REDRAW
|
||||||
|
#define wxMAC_DEBUG_REDRAW 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// globals
|
// globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -689,7 +694,7 @@ void wxTopLevelWindowMac::MacInvalidate( const Rect * rect, bool eraseBackground
|
|||||||
}
|
}
|
||||||
InvalWindowRect( m_macWindow , rect ) ;
|
InvalWindowRect( m_macWindow , rect ) ;
|
||||||
// turn this on to debug the refreshing cycle
|
// turn this on to debug the refreshing cycle
|
||||||
#if 0
|
#if wxMAC_DEBUG_REDRAW
|
||||||
PaintRect( rect ) ;
|
PaintRect( rect ) ;
|
||||||
#endif
|
#endif
|
||||||
SetPort( formerPort ) ;
|
SetPort( formerPort ) ;
|
||||||
|
Reference in New Issue
Block a user