Allow the renderer to also work with wxMemoryDCs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/dcclient.h"
|
#include "wx/dcclient.h"
|
||||||
|
#include "wx/dcmemory.h"
|
||||||
#include "wx/toplevel.h"
|
#include "wx/toplevel.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -37,11 +38,13 @@
|
|||||||
#include "wx/mstream.h"
|
#include "wx/mstream.h"
|
||||||
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
|
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
|
||||||
|
|
||||||
|
|
||||||
// check if we're currently in a paint event
|
// check if we're currently in a paint event
|
||||||
inline bool wxInPaintEvent(wxWindow* win, wxDC& dc)
|
inline bool wxInPaintEvent(wxWindow* win, wxDC& dc)
|
||||||
{
|
{
|
||||||
wxUnusedVar(dc);
|
return win->MacGetCGContextRef() != NULL ||
|
||||||
return ( win->MacGetCGContextRef() != NULL );
|
// wxMemoryDC's also have a valid CGContext.
|
||||||
|
dc.IsKindOf( CLASSINFO(wxMemoryDC) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user