X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7332adf0354fe6d7066483f8610e42380abbde41..a8c80eb1427f3baae78d682af29ee3ad0b57d607:/src/mgl/evtloop.cpp diff --git a/src/mgl/evtloop.cpp b/src/mgl/evtloop.cpp index ddf15a25b3..fe0b328eae 100644 --- a/src/mgl/evtloop.cpp +++ b/src/mgl/evtloop.cpp @@ -3,8 +3,8 @@ // Purpose: implements wxEventLoop for MGL // Author: Vaclav Slavik // RCS-ID: $Id$ -// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) -// License: wxWindows license +// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) +// License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ---------------------------------------------------------------------------- @@ -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); }