wxMGL bugfixes:

- timers weren't scheduled properly
- wxSizeEvent was sent even though the physical dimensions didn't change
- wxDC had bugs in device origin computations


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-11-15 23:50:04 +00:00
parent 00d1538d29
commit 88f2a7714a
4 changed files with 34 additions and 15 deletions

View File

@@ -76,22 +76,21 @@ void wxEventLoopImpl::Dispatch()
{
event_t evt;
MGL_wmUpdateDC(g_winMng);
// VS: The code bellow is equal to MGL's EVT_halt implementation, with
// two things added: sleeping (busy waiting is stupid, lets make CPU's
// life a bit easier) and timers updating
// EVT_halt(&evt, EVT_EVERYEVT);
do
for (;;)
{
EVT_pollJoystick();
EVT_getNext(&evt, EVT_EVERYEVT);
#if wxUSE_TIMER
wxTimer::NotifyTimers();
MGL_wmUpdateDC(g_winMng);
#endif
EVT_pollJoystick();
if ( EVT_getNext(&evt, EVT_EVERYEVT) ) break;
PM_sleep(10);
} while (!(evt.what & EVT_EVERYEVT));
}
// end of EVT_halt
MGL_wmProcessEvent(g_winMng, &evt);