diff --git a/src/generic/activityindicator.cpp b/src/generic/activityindicator.cpp index 02ed29b22d..53c65e14bf 100644 --- a/src/generic/activityindicator.cpp +++ b/src/generic/activityindicator.cpp @@ -122,7 +122,7 @@ private: void OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC pdc(m_win); -#if wxUSE_GRAPHICS_CONTEXT + wxScopedPtr const gc(wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(pdc)); @@ -167,7 +167,6 @@ private: gc->FillPath(path); gc->Rotate(angle); } -#endif } AdvanceTimer m_timer;