Ticket #47189: avoid-toolbar-background-corruption.diff

File avoid-toolbar-background-corruption.diff, 1.2 KB (added by RJVB (René Bertin), 10 years ago)
  • src/MixerBoard.cpp

    diff --git a/src/MixerBoard.cpp b/src/MixerBoard.cpp
    index d628352..f8e2b26 100644
    a b void MixerTrackCluster::OnPaint(wxPaintEvent & WXUNUSED(event)) 
    763763{
    764764   wxPaintDC dc(this);
    765765
    766    #ifdef __WXMAC__
     766   #if defined(__WXMAC__) || defined(__APPLE__)
    767767      // Fill with correct color, not scroller background. Done automatically on Windows.
    768768      AColor::Medium(&dc, false);
    769769      dc.DrawRectangle(this->GetClientRect());
  • src/widgets/Meter.cpp

    diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp
    index 718ff15..a2d0bb0 100644
    a b void Meter::OnErase(wxEraseEvent & WXUNUSED(event)) 
    354354void Meter::OnPaint(wxPaintEvent & WXUNUSED(event))
    355355{
    356356   wxPaintDC dc(this);
    357   #ifdef __WXMAC__
     357  #if defined(__WXMAC__) || defined(__APPLE__)
    358358   // Mac OS X automatically double-buffers the screen for you,
    359359   // so our bitmap is unneccessary
    360360   HandlePaint(dc);
    void Meter::RepaintBarsNow() 
    10281028   wxClientDC dc(this);
    10291029   int i;
    10301030
    1031   #ifdef __WXMAC__
     1031  #if defined(__WXMAC__) || defined(__APPLE__)
    10321032   // Mac OS X automatically double-buffers the screen for you,
    10331033   // so our bitmap is unneccessary
    10341034   for(i=0; i<mNumBars; i++)