From d996c5f4890167eb339484441bd0f90b384388a1 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Fri, 21 Sep 2007 21:17:08 +0000 Subject: [PATCH] Remove sunken border from audio display on wxMac, this avoids some graphical glitches, and it really also looks better. Originally committed to SVN as r1570. --- aegisub/audio_display.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aegisub/audio_display.cpp b/aegisub/audio_display.cpp index 5e4969c99..c4a30d037 100644 --- a/aegisub/audio_display.cpp +++ b/aegisub/audio_display.cpp @@ -63,10 +63,16 @@ #endif +#ifdef __WXMAC__ +# define AudioDisplayWindowStyle wxWANTS_CHARS +#else +# define AudioDisplayWindowSTyle wxSUNKEN_BORDER | wxWANTS_CHARS +#endif + /////////////// // Constructor AudioDisplay::AudioDisplay(wxWindow *parent) -: wxWindow (parent, -1, wxDefaultPosition, wxSize(200,Options.AsInt(_T("Audio Display Height"))), wxSUNKEN_BORDER | wxWANTS_CHARS , _T("Audio Display")) +: wxWindow (parent, -1, wxDefaultPosition, wxSize(200,Options.AsInt(_T("Audio Display Height"))), AudioDisplayWindowStyle , _T("Audio Display")) { // Set variables origImage = NULL;