Wrap module in #if wxUSE_GRAPHICS_CONTEXT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
#include "wx/graphics.h"
|
#include "wx/graphics.h"
|
||||||
|
|
||||||
|
#if wxUSE_GRAPHICS_CONTEXT
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@@ -865,4 +867,6 @@ void wxCairoContext::SetFont( const wxFont &font )
|
|||||||
wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc )
|
wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc )
|
||||||
{
|
{
|
||||||
return new wxCairoContext(dc);
|
return new wxCairoContext(dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_GRAPHICS_CONTEXT
|
||||||
|
@@ -38,6 +38,8 @@
|
|||||||
|
|
||||||
#include "wx/graphics.h"
|
#include "wx/graphics.h"
|
||||||
|
|
||||||
|
#if wxUSE_GRAPHICS_CONTEXT
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@@ -945,3 +947,6 @@ wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc)
|
|||||||
{
|
{
|
||||||
return new wxGDIPlusContext( (HDC) dc.GetHDC() );
|
return new wxGDIPlusContext( (HDC) dc.GetHDC() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // wxUSE_GRAPHICS_CONTEXT
|
||||||
|
Reference in New Issue
Block a user