Browse Source

Avoided a problem with the win32 video module if JUCE_MODAL_LOOPS_PERMITTED is disabled

tags/2021-05-28
jules 8 years ago
parent
commit
97fdc233e6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_video/native/juce_win32_Video.h

+ 2
- 0
modules/juce_video/native/juce_win32_Video.h View File

@@ -483,10 +483,12 @@ private:
if (FAILED (hr))
{
#if JUCE_MODAL_LOOPS_PERMITTED
// Annoyingly, if we don't run the msg loop between failing and deleting the window, the
// whole OS message-dispatch system gets itself into a state, and refuses to deliver any
// more messages for the whole app. (That's what happens in Win7, anyway)
MessageManager::getInstance()->runDispatchLoopUntil (200);
#endif
}
}


Loading…
Cancel
Save