Remove out of date bug workaround

Panel borders no longer make update region coordinates be out of sync
with drawing coordinates.

Originally committed to SVN as r6791.
This commit is contained in:
Thomas Goyne 2012-05-15 13:40:05 +00:00
parent d31b795e60
commit ea1dbc3e8c

View file

@ -796,15 +796,9 @@ void AudioDisplay::OnPaint(wxPaintEvent&)
bool redraw_scrollbar = false;
bool redraw_timeline = false;
wxPoint client_org = GetClientAreaOrigin();
for (wxRegionIterator region(GetUpdateRegion()); region; ++region)
{
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->GetBounds().Intersects(updrect);
redraw_timeline |= timeline->GetBounds().Intersects(updrect);