MGR: remove Mac-specific code no longer needed for wxCocoa 3.0

This commit is contained in:
Charlie Fenton 2013-10-23 00:49:52 -07:00
parent c5aa09037c
commit 77a2815285
1 changed files with 4 additions and 2 deletions

View File

@ -425,9 +425,11 @@ IMPLEMENT_DYNAMIC_CLASS(CSimpleTaskPanel, CSimplePanelBase)
BEGIN_EVENT_TABLE(CSimpleTaskPanel, CSimplePanelBase)
EVT_BOINCBITMAPCOMBOBOX(ID_SGTASKSELECTOR, CSimpleTaskPanel::OnTaskSelection)
#if 0 // This is apparently no longer needed with wxCocoa 3.0
#ifdef __WXMAC__
EVT_ERASE_BACKGROUND(CSimpleTaskPanel::OnEraseBackground)
#endif
#endif
END_EVENT_TABLE()
CSimpleTaskPanel::CSimpleTaskPanel() {
@ -1255,10 +1257,10 @@ void CSimpleTaskPanel::OnEraseBackground(wxEraseEvent& event) {
wxDC *dc = event.GetDC();
if (m_ProgressBar->IsShown()) {
if (m_progressBarRect == NULL) {
// if (m_progressBarRect == NULL) {
m_progressBarRect = new wxRect(m_ProgressBar->GetRect());
m_progressBarRect->Inflate(1, 0);
}
// }
dc->GetClippingBox(&clipRect.x, &clipRect.y, &clipRect.width, &clipRect.height);
if (clipRect.IsEmpty() || m_progressBarRect->Contains(clipRect)) {
return;