mirror of https://github.com/odrling/Aegisub
Seems to fix audio spectrum crash.
Originally committed to SVN as r727.
This commit is contained in:
parent
8ec4322174
commit
2d7af197ee
|
@ -677,7 +677,10 @@ protected:
|
|||
void AudioDisplay::DrawSpectrum(wxDC &finaldc,bool weak) {
|
||||
// Spectrum bitmap
|
||||
if (!weak || !spectrumDisplay || spectrumDisplay->GetWidth() != w || spectrumDisplay->GetHeight() != h) {
|
||||
if (spectrumDisplay) delete spectrumDisplay;
|
||||
if (spectrumDisplay) {
|
||||
delete spectrumDisplay;
|
||||
spectrumDisplay = 0;
|
||||
}
|
||||
//spectrumDisplay = new wxBitmap(w,h);
|
||||
weak = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue