Motif corrections in

wxDC (match wxWin 2.0 drawing stuff)
    on idle handling -> speed-up
    threads work now
    modules work now (also in release mode...)
    wxMotif compiles with configure again


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-30 16:24:18 +00:00
parent e107d0536c
commit aaa38880c4
5 changed files with 303 additions and 114 deletions

View File

@@ -28,6 +28,7 @@
#include "wx/log.h"
#include "wx/module.h"
#include "wx/memory.h"
#include "wx/thread.h"
#if wxUSE_WX_RESOURCES
#include "wx/resource.h"
@@ -93,7 +94,7 @@ bool wxApp::Initialize()
wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER);
wxModule::RegisterModules();
wxASSERT( wxModule::InitializeModules() == TRUE );
if (!wxModule::InitializeModules()) return FALSE;
return TRUE;
}
@@ -293,7 +294,17 @@ int wxApp::MainLoop()
XtAppNextEvent( (XtAppContext) wxTheApp->GetAppContext(), &event);
ProcessXEvent((WXEvent*) & event);
ProcessIdle();
if (XtAppPending( (XtAppContext) wxTheApp->GetAppContext() ) == 0)
{
if (!ProcessIdle())
{
wxMutexGuiLeave();
usleep(20);
wxMutexGuiEnter();
}
}
}
return 0;