mirror of https://github.com/odrling/Aegisub
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:
parent
d31b795e60
commit
ea1dbc3e8c
|
@ -796,15 +796,9 @@ void AudioDisplay::OnPaint(wxPaintEvent&)
|
||||||
bool redraw_scrollbar = false;
|
bool redraw_scrollbar = false;
|
||||||
bool redraw_timeline = false;
|
bool redraw_timeline = false;
|
||||||
|
|
||||||
wxPoint client_org = GetClientAreaOrigin();
|
|
||||||
for (wxRegionIterator region(GetUpdateRegion()); region; ++region)
|
for (wxRegionIterator region(GetUpdateRegion()); region; ++region)
|
||||||
{
|
{
|
||||||
wxRect updrect = region.GetRect();
|
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_scrollbar |= scrollbar->GetBounds().Intersects(updrect);
|
||||||
redraw_timeline |= timeline->GetBounds().Intersects(updrect);
|
redraw_timeline |= timeline->GetBounds().Intersects(updrect);
|
||||||
|
|
Loading…
Reference in New Issue