}
#endif
+wxGCDC::wxGCDC(wxGraphicsContext* context) :
+ wxDC( new wxGCDCImpl( this ) )
+{
+ SetGraphicsContext(context);
+}
+
wxGCDC::wxGCDC() :
wxDC( new wxGCDCImpl( this ) )
{
{
Init();
wxGraphicsContext* context;
-#if wxUSE_CAIRO
- wxGraphicsRenderer* renderer = wxGraphicsRenderer::GetCairoRenderer();
- context = renderer->CreateContext(dc);
-#else
context = wxGraphicsContext::Create(dc);
-#endif
-
SetGraphicsContext( context );
}