Revert "fix build without graphics context"
This reverts commit 44c91fedb8
which is
not necessary for wxQt any more as wxGraphicsContext is available for it
now and didn't make much sense because wxActivityIndicator just can't be
used without wxGraphicsContext, so a proper fix would be to disable the
former completely if the latter is unavailable.
This commit is contained in:
@@ -122,7 +122,7 @@ private:
|
|||||||
void OnPaint(wxPaintEvent& WXUNUSED(event))
|
void OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxPaintDC pdc(m_win);
|
wxPaintDC pdc(m_win);
|
||||||
#if wxUSE_GRAPHICS_CONTEXT
|
|
||||||
wxScopedPtr<wxGraphicsContext> const
|
wxScopedPtr<wxGraphicsContext> const
|
||||||
gc(wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(pdc));
|
gc(wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(pdc));
|
||||||
|
|
||||||
@@ -167,7 +167,6 @@ private:
|
|||||||
gc->FillPath(path);
|
gc->FillPath(path);
|
||||||
gc->Rotate(angle);
|
gc->Rotate(angle);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AdvanceTimer m_timer;
|
AdvanceTimer m_timer;
|
||||||
|
Reference in New Issue
Block a user