From ea1dbc3e8c0df5030d651d67663f498ead17d73b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 15 May 2012 13:40:05 +0000 Subject: [PATCH] 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. --- aegisub/src/audio_display.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index 83a4a5603..c735aaa51 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -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);