mirror of https://github.com/odrling/Aegisub
More fixes for dsound playing code and a bit for spectrum rendering
Originally committed to SVN as r732.
This commit is contained in:
parent
9babda0720
commit
a88feab986
|
@ -534,11 +534,7 @@ void AudioDisplay::DrawSpectrum(wxDC &finaldc,bool weak) {
|
|||
spectrumDisplay = new wxBitmap(imgobj);
|
||||
}
|
||||
|
||||
if (hasSel && selStartCap < selEndCap &&
|
||||
((selStartCap > Position && selStartCap < Position+w) ||
|
||||
(selEndCap > Position && selEndCap < Position+w) ||
|
||||
(selStartCap < Position && selEndCap > Position+w)) &&
|
||||
!spectrumDisplaySelected) {
|
||||
if (hasSel && selStartCap < selEndCap && !spectrumDisplaySelected) {
|
||||
// There is a visible selection and we don't have a rendered one
|
||||
// This should be done regardless whether we're "weak" or not
|
||||
// Assume a few things were already set up when things were first rendered though
|
||||
|
|
|
@ -295,8 +295,10 @@ void DirectSoundPlayer::Stop(bool timerToo) {
|
|||
offset = 0;
|
||||
|
||||
// Close event handle
|
||||
if (notificationEvent)
|
||||
if (notificationEvent) {
|
||||
CloseHandle(notificationEvent);
|
||||
notificationEvent = 0;
|
||||
}
|
||||
|
||||
// Stop timer
|
||||
if (timerToo && displayTimer) {
|
||||
|
|
Loading…
Reference in New Issue