X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7332adf0354fe6d7066483f8610e42380abbde41..cd72551c2b6cbf67a4a5caf0ba00ba64e41183b2:/src/mgl/evtloop.cpp?ds=sidebyside diff --git a/src/mgl/evtloop.cpp b/src/mgl/evtloop.cpp index ddf15a25b3..22f4d61355 100644 --- a/src/mgl/evtloop.cpp +++ b/src/mgl/evtloop.cpp @@ -3,7 +3,7 @@ // Purpose: implements wxEventLoop for MGL // Author: Vaclav Slavik // RCS-ID: $Id$ -// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) +// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) // License: wxWindows license /////////////////////////////////////////////////////////////////////////////// @@ -178,6 +178,11 @@ void wxEventLoop::Exit(int rc) bool wxEventLoop::Pending() const { + // update the display here, so that wxYield refreshes display and + // changes take effect immediately, not after emptying events queue: + MGL_wmUpdateDC(g_winMng); + + // is there an event in the queue? event_t evt; return EVT_peekNext(&evt, EVT_EVERYEVT); }