From a6236fa20c87297b70b6c313ecc23e1780495738 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 8 Dec 2010 08:09:44 +0000 Subject: [PATCH] Only work around wxMac bugs on wxMac Originally committed to SVN as r4911. --- aegisub/src/audio_display.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index 8d9b4dbd0..0a1e5b0e4 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -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);