Only work around wxMac bugs on wxMac

Originally committed to SVN as r4911.
This commit is contained in:
Thomas Goyne 2010-12-08 08:09:44 +00:00
parent 30cd87bcb3
commit a6236fa20c
1 changed files with 2 additions and 0 deletions

View File

@ -829,7 +829,9 @@ void AudioDisplay::OnPaint(wxPaintEvent& event)
wxRect updrect = region.GetRect(); wxRect updrect = region.GetRect();
// Work around wxMac issue, client border offsets update rectangles but does // Work around wxMac issue, client border offsets update rectangles but does
// not affect drawing coordinates. // not affect drawing coordinates.
#ifdef __WXMAC__
updrect.x += client_org.x; updrect.y += client_org.y; updrect.x += client_org.x; updrect.y += client_org.y;
#endif
redraw_scrollbar |= scrollbar_bounds.Intersects(updrect); redraw_scrollbar |= scrollbar_bounds.Intersects(updrect);
redraw_timeline |= timeline_bounds.Intersects(updrect); redraw_timeline |= timeline_bounds.Intersects(updrect);