wxMGL bugfixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-08-12 00:13:37 +00:00
parent 2d2c394b59
commit fd495ab3ea
6 changed files with 32 additions and 35 deletions

View File

@@ -157,20 +157,18 @@ bool wxEventLoop::Dispatch()
wxCHECK_MSG( IsRunning(), FALSE, _T("can't call Dispatch() if not running") );
event_t evt;
ibool rc = EVT_getNext(&evt, EVT_EVERYEVT);
if ( !rc )
{
wxLogError(_T("events queue empty even though Pending() returned true"));
return FALSE;
}
ibool rc;
// FIXME_MGL -- there must be some way to programatically exit
// the loop, like WM_QUIT under Windows -- perhaps we need custom
// event to indicate this??
rc = EVT_getNext(&evt, EVT_EVERYEVT);
while ( !rc )
{
wxUsleep(1000);
if ( !m_impl->GetKeepLooping() )
return FALSE;
rc = EVT_getNext(&evt, EVT_EVERYEVT);
}
m_impl->ProcessEvent(&evt);
return m_impl->GetKeepLooping();
}