Only work around wxMac bugs on wxMac
Originally committed to SVN as r4911.
This commit is contained in:
parent
30cd87bcb3
commit
a6236fa20c
1 changed files with 2 additions and 0 deletions
|
@ -829,7 +829,9 @@ void AudioDisplay::OnPaint(wxPaintEvent& event)
|
|||
wxRect updrect = region.GetRect();
|
||||
// Work around wxMac issue, client border offsets update rectangles but does
|
||||
// not affect drawing coordinates.
|
||||
#ifdef __WXMAC__
|
||||
updrect.x += client_org.x; updrect.y += client_org.y;
|
||||
#endif
|
||||
|
||||
redraw_scrollbar |= scrollbar_bounds.Intersects(updrect);
|
||||
redraw_timeline |= timeline_bounds.Intersects(updrect);
|
||||
|
|
Loading…
Reference in a new issue