fix build without graphics context

This commit is contained in:
Sean D'Epagnier
2016-08-24 15:09:05 -04:00
committed by Vadim Zeitlin
parent f9429b7db4
commit 44c91fedb8

View File

@@ -122,7 +122,7 @@ private:
void OnPaint(wxPaintEvent& WXUNUSED(event))
{
wxPaintDC pdc(m_win);
#if wxUSE_GRAPHICS_CONTEXT
wxScopedPtr<wxGraphicsContext> const
gc(wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(pdc));
@@ -167,6 +167,7 @@ private:
gc->FillPath(path);
gc->Rotate(angle);
}
#endif
}
AdvanceTimer m_timer;