mirror of https://github.com/odrling/Aegisub
Only work around wxMac bugs on wxMac
Originally committed to SVN as r4911.
This commit is contained in:
parent
30cd87bcb3
commit
a6236fa20c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue